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

Add support for new developer id #2203

Merged
merged 9 commits into from
Aug 20, 2024

Conversation

kerunaru
Copy link
Sponsor Contributor

@kerunaru kerunaru commented Aug 7, 2024

This is a first approach to support the new developer id (closes #2102). Although I added a new property to Package.vala populating that id, it is really uncommon that this info is available.

The "More apps from this developer" feature is kind of broken right now because of this... Should I search by author name like before in case no more apps are found?

I left some warning logs just to check the realted properties to this functionality in FlatpakBackend.vala.

Copy link
Contributor

@ryonakano ryonakano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution! I'm leaving some comments, although your PR is still draft.

src/Core/Package.vala Outdated Show resolved Hide resolved
src/Core/Package.vala Outdated Show resolved Hide resolved
@kerunaru
Copy link
Sponsor Contributor Author

kerunaru commented Aug 7, 2024

Thank you for your contribution! I'm leaving some comments, although your PR is still draft.

Yes. It is still a draft because I want some feedback from your part about the questions on this PR description. 😃

src/Core/Package.vala Outdated Show resolved Hide resolved
This will make AppCenter not to find any other application if the
developer has one with a developer ID defined in its metadata!
@kerunaru kerunaru marked this pull request as ready for review August 8, 2024 06:49
src/Views/AuthorView.vala Outdated Show resolved Hide resolved
Copy link
Contributor

@ryonakano ryonakano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and works as expected for me.

The get_packages_by_author_id and get_packages_by_author methods do almost similar thing so maybe we can work on DRY on them, but we can revisit later if we want.

@leonardo-lemos leonardo-lemos merged commit a47c0c1 into elementary:main Aug 20, 2024
2 of 4 checks passed
@kerunaru
Copy link
Sponsor Contributor Author

Woah! This is the first time I contribute to an OS! Thanks for accepting my contribution 😄

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.

Use new "developer ID" metainfo
3 participants