Project

General

Profile

Feature #23158

POMS Client API to update test parameter override for a campaign stage

Added by Yuyi Guo 3 months ago. Updated 2 months ago.

Status:
Resolved
Priority:
Normal
Target version:
Start date:
08/22/2019
Due date:
% Done:

100%

Estimated time:
Scope:
Internal
Experiment:
-
Stakeholders:
Duration:

Description

Hi Vladimir,

As we talked, here is the ticket for the API to overwrite test_parameter_override.
In some circumstances it is useful for project-py to be able to overwrite some test parameters for a campaign stage. In issue 22959, We requested a API to overwrite parameters for a campaign stage. This request is similar to 22959, but it is to overwrite test_parameter_override content. To identify a stage, we'd like to use two different ways: names (campaign and stage) and stage id. If the parameter is already in POMS, the API overwrites the old value with the new one. If the parameter is new to POMS. the API adds the new pair.

History

#1 Updated by Vladimir Podstavkov 3 months ago

  • % Done changed from 0 to 90
  • Status changed from New to Work in progress

#2 Updated by Vladimir Podstavkov 3 months ago

I have combined the functionality for param_overrides and test_param_overrides in one call. Here is an example:

update_stage_param_overrides(
    'samdev', 
    1513, 
    param_overrides="[['--stage=', 'gen']]", 
    test_param_overrides="[['--teststage=', 'testgen']]", 
    test=1
)

One can provide either param_overrides="..." argument or test_param_overrides="..." or even both in one call.
The stage can be referred either by its ID as in example or by tuple ('campaign_name', 'stage_name') instead as a second argument in the call.

#3 Updated by Yuyi Guo 3 months ago

Great ! Thanks Vladimir.
YUyi

#4 Updated by Vladimir Podstavkov 2 months ago

  • % Done changed from 90 to 100
  • Status changed from Work in progress to Resolved


Also available in: Atom PDF