-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create a one-time endpoint that sets the language version for existing descriptor files #5270
Comments
I just realized we're not going to be able to update frozen versions. We might need to do this in the migrations file. Just discovered a way to do custom Java migrations, maybe that's the way. |
Further thoughts on the issue raised in previous comment on how we are going to handle frozen versions for this. By default, we will not be able to update frozen versions nor their source files with this information.
@denis-yuen @kathy-t Any thoughts? |
Well, we have done the second option with frozen versions It's a |
Ah good point. I was aware of that one; the solution seemed hackier to me for SourceFiles, but maybe not. Maybe we should just go with this approach -- there could be something else we want to add to source files one day, e.g., my speculative idea about needing file permissions. |
It is a bit of a pain, for example since we have so many source files in the system, I wonder if there will be performance implications. But hopefully a |
Ran a rough experiment, updating all versions from published workflows only (no tools/apptools, no unpublished), one language at a time, and it took: CWL: 8.75s |
WDL may be an over-night/batched job with unpublished as well I imagine. |
Actually, just checked, and we 2.5x more versions on workflows that are published compared to unpublished, so the unpublished will be faster. |
#5270 -- see PR description for more detail.
➤ Denis Yuen commented: Documented in https://github.com/dockstore/dockstore-deploy/wiki/1.14-staging#post-deploy ( https://github.com/dockstore/dockstore-deploy/wiki/1.14-staging#post-deploy ) Search seems consistent (if a little confusing) since workflows will appear under all language versions that they’ve ever used. Spot checking a number of languages, the results seem consistent although we lack galaxy results. |
➤ Denis Yuen commented: Hmmm, may be an oversight. The galaxy plugin populates language versions on indexing (new workflows) but not on parseWorkflowContent (what is currently used) |
Whoops, I just had assumed we hadn't implemented this for Galaxy yet, and that Galaxy only had one version anyway. |
Potential fix for testing and review at #5374 |
We have a couple versions in the Galaxy facet in search, so this seems obsolete |
Is your feature request related to a problem? Please describe.
PR #5266 adds the ability to track language versions for source files and entry versions. However, existing source files and entry versions do not have the language version set.
Describe the solution you'd like
Create a one-time endpoint that parses existing descriptors for the language version and sets it for the entries' source files and versions.
Describe alternatives you've considered
n/a
Additional context
Follow up work for #4320
┆Issue is synchronized with this Jira Story
┆Fix Versions: Dockstore 1.14
┆Issue Number: DOCK-2296
┆Sprint: 105 - Colorado
┆Issue Type: Story
The text was updated successfully, but these errors were encountered: