-
Notifications
You must be signed in to change notification settings - Fork 114
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
SPDX License feature UI and task changes #2296
Conversation
292215b
to
fe463f1
Compare
08caf4a
to
6c16204
Compare
bea5c81
to
daeca94
Compare
[:error, e] | ||
end | ||
|
||
end |
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.
as per the lint pattern we should add a newline at the end of every file.
end | |
end | |
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.
But linter never complained about this .. if this would have been the rule .. linter would have failed ? I don't suggest making a change without linter complaining about it explicitly
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.
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.
Also it's a guideline from rubocop. Refer this link:
https://www.rubydoc.info/gems/rubocop/0.20.1/Rubocop/Cop/Style/FinalNewline
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.
It might be a guideline but in our project we are not following that .. no project follows all the guidelines from rubocop.. I will make a change thats not an issue .. but I expect linter to suggest linter changes if this has to be followed .. this has to be put in the cops definition for the project
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.
yes makes sense.
|
||
[:ok, I18n.t("spdx_license.scheduled.single", name: cookbook.name, version: cookbook_version.id)] | ||
end | ||
end |
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.
as per the lint pattern we should add a newline at the end of every file.
end | |
end | |
exit 1 | ||
end | ||
|
||
result, message = UpdateSpdxLicenseUrl.on_version args[:cookbook_name], args[:version] |
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.
when u use multiple assignment use parenthesis to mark the scope of function arguments for better readibility.
result, message = UpdateSpdxLicenseUrl.on_version args[:cookbook_name], args[:version] | |
result, message = UpdateSpdxLicenseUrl.on_version(args[:cookbook_name], args[:version]) |
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.
In case of language like ruby I do not agree with this suggestion.
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.
No issues from the language point of view. It's just for readibility. U can keep it as it is.
22529d4
to
c6ffaa9
Compare
@RajeshPaul38 Please merge this if everything looks good. |
Have approved. Pls go ahead. |
src/supermarket/.env
Outdated
@@ -25,3 +25,4 @@ FIERI_FOODCRITIC_TAGS="metadata,correctness,supermarket,portability,deprecated ~ | |||
FIERI_SUPERMARKET_ENDPOINT=http://localhost:13000 | |||
ROBOTS_ALLOW=/ | |||
ENFORCE_PRIVACY=true | |||
SPDX_LICENSE_URL=https://raw.githubusercontent.com/spdx/license-list-data/master/json/licenses.json |
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.
We need to make sure that Supermarket can work with as little external connectivity as possible. Is it possible to fetch this file in the omnibus build so we ship Supermarket with the file.
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.
ok, will make this change
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.
Hi, How often do we expect this file to get updated? What will happen if the file gets updated since we have static copy of the same now?
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.
We should be pulling in the latest copy at build time in Supermarket.
f1683b9
to
6b9e714
Compare
98e0d50
to
7c64054
Compare
2ce2213
to
795cad3
Compare
omnibus/cookbooks/omnibus-supermarket/files/default/ctl-commands/update-spdx-license.rb
Outdated
Show resolved
Hide resolved
50232c9
to
70e4aa8
Compare
https://buildkite.com/chef/chef-supermarket-main-omnibus-adhoc/builds/261 - Omnibus build success |
Signed-off-by: smriti <sgarg@msystechnologies.com>
Signed-off-by: smriti <sgarg@msystechnologies.com>
Signed-off-by: smriti <sgarg@msystechnologies.com>
Signed-off-by: smriti <sgarg@msystechnologies.com>
Signed-off-by: smriti <sgarg@msystechnologies.com>
865a0a1
to
397cf27
Compare
👷 Deploy Preview for chef-supermarket processing. 🔨 Explore the source changes: fc2fcee 🔍 Inspect the deploy log: https://app.netlify.com/sites/chef-supermarket/deploys/619e39f6289a4c000857151f |
ceb1993
to
b782667
Compare
Signed-off-by: smriti <sgarg@msystechnologies.com>
b782667
to
fc2fcee
Compare
Simplecov Report
|
Description
With this change
if any cook has a license mentioned and there is a respective entry for license url in https://github.com/spdx/license-list-data/blob/master/json/licenses.json
The license url information will be updated for the cookbook and a link will be shown in ui for the user to go through the license url
Have added ctl commands for updating license information in supermarket deployments. Attaching some screenshots for reference
After running ctl command or uploading a new cookbook UI changes :
CTL command running succesfully
Issues Resolved
#2188
Check List