Skip to content

Fix extraction of orcid identifiers for .dockstore.yml#1350

Merged
mvdbeek merged 4 commits intogalaxyproject:masterfrom
lldelisle:make_test_run
Feb 16, 2023
Merged

Fix extraction of orcid identifiers for .dockstore.yml#1350
mvdbeek merged 4 commits intogalaxyproject:masterfrom
lldelisle:make_test_run

Conversation

@lldelisle
Copy link

>>> requests.get(f"https://orcid.org/0000-0001-6879-5194", headers={"Accept": "application/xml"},).status_code
200
>>> requests.get(f"https://orcid.org/0000-0001-6879-5193", headers={"Accept": "application/xml"},).status_code
404
>>> requests.get(f"https://orcid.org/0000-0001-6879-519", headers={"Accept": "application/xml"},).status_code
200

@mvdbeek
Copy link
Member

mvdbeek commented Feb 10, 2023

  • if you put 15 or 17 numbers

we could also check that on our side, I assume orcid is always going to be 16 ?

@lldelisle
Copy link
Author

Now with the regex it should be ok. It was just that when I did a mistake with the regex it was passing while I was expecting to fail... Nevermind. I think this is the good solution, I just need to fix the test case.

Copy link
Member

@mvdbeek mvdbeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried fixing up the tests, if that still looks good to you @lldelisle I will merge

@lldelisle
Copy link
Author

Thanks I forgot I was working on this.

@mvdbeek mvdbeek enabled auto-merge February 16, 2023 13:55
@lldelisle
Copy link
Author

One test failed and I don't have the power to rerun it.

@mvdbeek mvdbeek disabled auto-merge February 16, 2023 14:21
@mvdbeek mvdbeek merged commit ef68fb3 into galaxyproject:master Feb 16, 2023
@mvdbeek
Copy link
Member

mvdbeek commented Feb 16, 2023

The node download failed, bit of a problem recently, but nothign related to this PR

@lldelisle lldelisle deleted the make_test_run branch February 16, 2023 14:22
@lldelisle
Copy link
Author

cool ! sorry that I needed 3 PR to make it work...

@mvdbeek
Copy link
Member

mvdbeek commented Feb 16, 2023

No worries, would've taken me the same amount of PRs, or more ;)

@mvdbeek mvdbeek changed the title Make test dockstore init with creator run and pass Fix extraction of orcid identifiers for .dockstore.yml Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants