Skip to content

Commit

Permalink
methoduri
Browse files Browse the repository at this point in the history
  • Loading branch information
nikellepetrillo committed Nov 20, 2024
1 parent c01f95a commit 9c1655a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/firecloud_api/firecloud_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,6 @@ def upload_test_inputs(self, pipeline_name, test_inputs, branch_name):
inputs_json = self.quote_values(inputs_json)
config["inputs"] = inputs_json

# update the config with the new branch name

# Construct the methodUri with the branch name
base_url = "github.com/broadinstitute/warp/{pipeline_name}"
method_uri = f"dockstore://{quote(base_url)}/{branch_name}"
Expand All @@ -181,12 +179,12 @@ def upload_test_inputs(self, pipeline_name, test_inputs, branch_name):
print(f"Updating methodVersion with branch name: {branch_name}")
config["methodRepoMethod"]["methodVersion"] = branch_name

# Increment the methodConfigVersion
# We need to increment the methodConfigVersion by 1 every time we update the method configuration
config["methodConfigVersion"] += 1 # Increment version number by 1
print(f"Updated method configuration: {json.dumps(config, indent=2)}")


# post the updated method config to the workspace
# post the updated method config to the workspace
response = requests.post(url, headers=self.headers, json=config)
print(f"Response status code: {response.status_code}")
print(f"Response text: {response.text}")
Expand Down

0 comments on commit 9c1655a

Please sign in to comment.