-
Notifications
You must be signed in to change notification settings - Fork 91
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
Update generation script to handle non-versioned items #460
Update generation script to handle non-versioned items #460
Conversation
Signed-off-by: Jordan Dubrick <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice addition! Only questions is if we could add null
instead of "null"
as value in the json file. Other than that lgtm
I've also tested locally and it works as expected. |
I was thinking that as well. It seems like when during the parse everything is parsed as a string but it worked out because on the It being in |
thinking only it might be better to use another key-word like "undefined" just to avoid potential confusion with "null" vs |
Signed-off-by: Jordan Dubrick <[email protected]>
I replaced Changes to other PR: devfile/registry-support@1fadd41 |
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Jdubrick, thepetk The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What does this PR do?:
Summarize the changes. Are any stacks or samples added or updated?
This PR contains the changes required to the
generate_last_mod_file.sh
script to allow for thelast_modified.json
to properly contain stacks/samples that do not have a version. In the case of a non-versioned item theversion
field in the json will be"null"
.For samples the parsing handles the following 3 cases:
Example output:
Which issue(s) this PR fixes:
Link to github issue(s)
fixes devfile/api#1607
PR acceptance criteria:
Have you read the devfile registry contributing guide and followed its instructions?
Does this repository's tests pass with your changes?
Does any documentation need to be updated with your changes?
Have you tested the changes with existing tools, i.e. Odo, Che, Console? (See devfile registry contributing guide on how to test changes)
How to test changes / Special notes to the reviewer:
To test the changes you will need to do the following:
extraDevfileEntries.yaml
locally to contain samples that do not have versions. You can reference the ones I used here:.ci./generate_last_mod_file.sh
and observe the changes inlast_modified.json
.