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

Allow adding new projects just from URL #1742

Open
Zlopez opened this issue Mar 18, 2024 · 0 comments
Open

Allow adding new projects just from URL #1742

Zlopez opened this issue Mar 18, 2024 · 0 comments
Labels
Low Priority This ticket has a low priority type.feature New feature

Comments

@Zlopez
Copy link
Contributor

Zlopez commented Mar 18, 2024

Description

Let's make adding projects easier. This is a feature that will allow users to just provide URL to project they want to add and Anitya should do the rest.

WORKFLOW:

  1. When clicking on Add project menu entry the user will be redirected to a new page, which will ask him for URL to project he want's to add and click 'Add' button on page
  2. User gets redirected to current Add project page prefilled with data obtained from project's page

Example:

  1. User provides https://pypi.org/project/anitya/ and it will get redirected to /project/new with the project filled in with

Requirements

  • New page that will allow user to put the URL
  • New Flask view that will be called when submitting the URL, this will try to recognize the backend (the best way to do it is probably using domain name checking based on the backends - will probably need some new constant in each backend)
  • New method in each backend (or at least in those where it's possible) that will obtain data from the URL provided
  • The redirect to current Add project page with the data obtained in previous step (this will be probably part of the new Flask view)

How this will make Anitya better

It will make adding projects less tedious and quicker.

@Zlopez Zlopez added type.feature New feature Low Priority This ticket has a low priority labels Mar 18, 2024
NyuydineBill added a commit to NyuydineBill/anitya that referenced this issue Mar 27, 2024
Description:
This commit introduces significant enhancements to the Anitya UI, focusing on data retrieval and autofilling functionalities within UI forms.

Changes:
- Implemented functionality to retrieve project data based on provided homepage URLs
- Added autofilling of project creation form fields with retrieved data
- Integrated rapidfuzz library for efficient string matching during URL-based project search
- Enhanced user experience by automatically populating form fields with relevant project data
- Ensured consistency and reliability in the data retrieval and autofilling processes
- Conducted code refactoring for improved readability and maintainability

This update addresses issue fedora-infra#1742
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Low Priority This ticket has a low priority type.feature New feature
Projects
None yet
Development

No branches or pull requests

1 participant