-
Notifications
You must be signed in to change notification settings - Fork 106
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
If URL is changed, update ecosystem value as well #764
Comments
This is definitely a bug. The ecosystem should be either backend related or homepage and if homepage is changed, the ecosystem should be changed too. |
Implementations detailsThis should be implemented as a SQLAlchemy event in https://github.com/release-monitoring/anitya/blob/master/anitya/db/events.py Right now we are only checking if the ecosystem is filled, if not we will fill it. This should be done differently, so every time there is a change to homepage or backend the ecosystem should be also changed. |
Till now ecosystem was only set once, when project was created. With this commit ecosystem is changed when homepage or backend change is emitted. The ecosystem value is set as follows: - Ecosystem is set using backend if backend is associated with ecosystem - Ecosystem is set to homepage Fixes fedora-infra#764 Signed-off-by: Michal Konečný <[email protected]>
Till now ecosystem was only set once, when project was created. With this commit ecosystem is changed when homepage or backend change is emitted. The ecosystem value is set as follows: - Ecosystem is set using backend if backend is associated with ecosystem - Ecosystem is set to homepage Fixes fedora-infra#764 Signed-off-by: Michal Konečný <[email protected]>
Till now ecosystem was only set once, when project was created. With this commit ecosystem is changed when homepage or backend change is emitted. The ecosystem value is set as follows: - Ecosystem is set using backend if backend is associated with ecosystem - Ecosystem is set to homepage Fixes fedora-infra#764 Signed-off-by: Michal Konečný <[email protected]>
Till now ecosystem was only set once, when project was created. With this commit ecosystem is changed when homepage or backend change is emitted. The ecosystem value is set as follows: - Ecosystem is set using backend if backend is associated with ecosystem - Ecosystem is set to homepage Fixes fedora-infra#764 Signed-off-by: Michal Konečný <[email protected]>
Till now ecosystem was only set once, when project was created. With this commit ecosystem is changed when homepage or backend change is emitted. The ecosystem value is set as follows: - Ecosystem is set using backend if backend is associated with ecosystem - Ecosystem is set to homepage Fixes #764 Signed-off-by: Michal Konečný <[email protected]>
Till now ecosystem was only set once, when project was created. With this commit ecosystem is changed when homepage or backend change is emitted. The ecosystem value is set as follows: - Ecosystem is set using backend if backend is associated with ecosystem - Ecosystem is set to homepage Fixes fedora-infra#764 Signed-off-by: Michal Konečný <[email protected]>
Example
https://release-monitoring.org/project/13720/
I modified the .de into .com for the blogspot URL, but ecosystem stayed in .de.
This is problematic because the APIv2 search parameters is using ecosystem to match projects.
The text was updated successfully, but these errors were encountered: