-
Notifications
You must be signed in to change notification settings - Fork 484
fix(licenseRef): Fix import of licenseRef.json #1663
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
Conversation
a622a13
to
c89a200
Compare
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.
code looks good
updating fo-postinstall is breaking
|
c89a200
to
e8c7c13
Compare
1. Remove rf_md5 from licenseRef.json as it can be derived from rf_text. 2. Remove rf_pk from licenseRef.json as rf_shortname is the correct way to reference a license from DB. 3. Update rf_md5 whenever rf_text updates. 4. Insert rf_add_date for new licenses. 5. If a license already exists as candidate, merge it with main license_ref before updating. Signed-off-by: Gaurav Mishra <[email protected]>
e8c7c13
to
865f8ac
Compare
Hello @ag4ums , I've fixed the issue. Can you please test again? |
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.
tested working fine
Changes
rf_md5
fromlicenseRef.json
as it can be derived fromrf_text
.rf_pk
fromlicenseRef.json
asrf_shortname
is the correct way to reference a license from DB.rf_md5
wheneverrf_text
updates.rf_add_date
for new licenses.license_ref
before updating.How to test
rf_md5
is correct (SELECT rf_shortname, rf_md5, md5(rf_text) AS hash FROM license_ref WHERE rf_md5 != md5(rf_text);
)license_ref.rf_pk
has not been changed.rf_md5
is correct (SELECT rf_shortname, rf_md5, md5(rf_text) AS hash FROM license_ref WHERE rf_md5 != md5(rf_text);
)licenseRef.json
.license_ref
and therf_pk
for the license has not changed.