Skip to content
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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

javanlacerda
Copy link
Contributor

@javanlacerda javanlacerda commented Apr 30, 2024

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

@javanlacerda javanlacerda requested a review from a team as a code owner April 30, 2024 19:09
@javanlacerda javanlacerda marked this pull request as draft April 30, 2024 19:13
@javanlacerda javanlacerda changed the title Javan.verified release url Create and populate verified field for ReleaseUrl May 4, 2024
@javanlacerda javanlacerda marked this pull request as ready for review May 4, 2024 21:33
@javanlacerda javanlacerda marked this pull request as draft May 4, 2024 21:36
@javanlacerda javanlacerda marked this pull request as ready for review May 6, 2024 20:48
Signed-off-by: Javan lacerda <[email protected]>
name: {
"url": url,
"verified": publisher_base_url
and url.lower().startswith(publisher_base_url.lower()),
Copy link
Member

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.

Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants