-
Notifications
You must be signed in to change notification settings - Fork 5
Allow to manage repositories in the scheduler #27
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
Conversation
ef91004 to
de04607
Compare
sduenas
left a comment
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.
I think we should keep this simpler. The API will change a lot and we don't need to include behaviours or operations that we could remove.
| uri = CharField(max_length=MAX_SIZE_CHAR_FIELD) | ||
| datasource_type = CharField(max_length=MAX_SIZE_CHAR_FIELD) | ||
| datasource_category = CharField(max_length=MAX_SIZE_CHAR_FIELD) | ||
| task = OneToOneField(EventizerTask, on_delete=CASCADE, related_name="repository", null=True, default=None) |
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.
This can be enough for now but in the future we would need a 0:N relationship.
12801aa to
ace68ab
Compare
ace68ab to
374778a
Compare
sduenas
left a comment
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.
The main change I propose is to move datasources as an app at the same level of scheduler.
374778a to
c230451
Compare
This commit introduces a new model, `Repository`, which allows easier management of repositories. With this model, repositories can be uniquely related to tasks. Signed-off-by: Jose Javier Merchante <[email protected]>
This commit adds two new API endpoints for managing repositories: - /scheduler/add_repository: This endpoint allows users to add a new repository for analysis. - /scheduler/repositories: This endpoint provides a list of available repositories in GrimoireLab along with task information. It includes filtering options for backend, category, and URI. Signed-off-by: Jose Javier Merchante <[email protected]>
c230451 to
2a2e355
Compare
sduenas
left a comment
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.
LGTM
This PR adds a new model and two new endpoints to manage repositories in GrimoireLab core:
/scheduler/add_repository: This endpoint allows users to add a new repository for analysis. If the repository already exists, it is updated.
/scheduler/repositories: This endpoint provides a list of available repositories in GrimoireLab and task information. It includes filtering options for the backend, category, and URI.