-
Notifications
You must be signed in to change notification settings - Fork 984
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 and populate verified field for ReleaseUrl #15891
Conversation
a878a8a
to
4fe5275
Compare
Signed-off-by: Javan lacerda <[email protected]>
Signed-off-by: Javan lacerda <[email protected]>
Signed-off-by: Javan lacerda <[email protected]>
Signed-off-by: Javan lacerda <[email protected]>
Signed-off-by: Javan lacerda <[email protected]>
Signed-off-by: Javan lacerda <[email protected]>
06d11ec
to
c51f249
Compare
Signed-off-by: Javan lacerda <[email protected]>
c51f249
to
e165eb6
Compare
warehouse/migrations/versions/26455e3712a2_create_verified_field_for_releaseurl.py
Outdated
Show resolved
Hide resolved
warehouse/migrations/versions/26455e3712a2_create_verified_field_for_releaseurl.py
Outdated
Show resolved
Hide resolved
warehouse/migrations/versions/26455e3712a2_create_verified_field_for_releaseurl.py
Outdated
Show resolved
Hide resolved
name: { | ||
"url": url, | ||
"verified": publisher_base_url | ||
and url.lower().startswith(publisher_base_url.lower()), |
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's a bug here (and in the previous version) because checking for a prefix isn't enough. @facutuesca will be updating this with changes from trail-of-forks#2833.
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.
Since I don't have permissions for the repo where this branch lives, I created a new branch here: #16205
Contribute towards closing #8635
It creates a new field
verified
for ReleaseUrl model. It also starts populating this field by checking the release url shares the same root url of the publisher url.These
verified
flag should be used in the future for providing this information in project details page.cc @di