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

feat(gitlab): add filtering and pagination (#681) #681

Merged
merged 2 commits into from
Apr 17, 2024

Conversation

mdonadoni
Copy link
Member

@mdonadoni mdonadoni commented Mar 19, 2024

Closes #518

mdonadoni added a commit to mdonadoni/reana-server that referenced this pull request Mar 19, 2024
mdonadoni added a commit to mdonadoni/reana-server that referenced this pull request Mar 19, 2024
Copy link

codecov bot commented Mar 19, 2024

Codecov Report

Attention: Patch coverage is 91.66667% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 60.06%. Comparing base (b7cc00a) to head (6e413bb).

❗ Current head 6e413bb differs from pull request most recent head 4d23c62. Consider uploading reports for the commit 4d23c62 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #681      +/-   ##
==========================================
+ Coverage   59.46%   60.06%   +0.60%     
==========================================
  Files          32       32              
  Lines        3298     3308      +10     
==========================================
+ Hits         1961     1987      +26     
+ Misses       1337     1321      -16     
Files Coverage Δ
reana_server/rest/gitlab.py 47.95% <100.00%> (+17.62%) ⬆️
reana_server/utils.py 58.52% <71.42%> (+1.59%) ⬆️

mdonadoni added a commit to mdonadoni/reana-server that referenced this pull request Mar 20, 2024
BREAKING CHANGE: The response of `gitlab_projects` API endpoint has been
modified to also include the pagination details.

Closes reanahub#518
mdonadoni added a commit to mdonadoni/reana-server that referenced this pull request Mar 20, 2024
BREAKING CHANGE: The response of `gitlab_projects` API endpoint has been
modified to also include the pagination details.

Closes reanahub#518
@mdonadoni mdonadoni changed the title feat(gitlab): accept search query to filter gitlab projects (#681) feat(gitlab): add filtering and pagination (#681) Mar 20, 2024
mdonadoni added a commit to mdonadoni/reana-server that referenced this pull request Mar 25, 2024
BREAKING CHANGE: The response of `gitlab_projects` API endpoint has been
modified to also include the pagination details.

Closes reanahub#518
mdonadoni added a commit to mdonadoni/reana-server that referenced this pull request Mar 25, 2024
mdonadoni added a commit to mdonadoni/reana-server that referenced this pull request Mar 25, 2024
BREAKING CHANGE: The response of `gitlab_projects` API endpoint has been
modified to also include the pagination details.

Closes reanahub#518
Copy link
Member

@tiborsimko tiborsimko left a comment

Choose a reason for hiding this comment

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

Works nicely 👍

Some cosmetic comments:

  • Left a comment about a (forgotten?) FIXME in the code.

  • The base commit could perhaps say "add" instead of "accept" (?), giving something like:

 feat(gitlab): add search query parameter to filter projects (#681)

@@ -509,23 +509,30 @@ def _get_gitlab_hook_id(project_id, gitlab_token):
:param project_id: Project id on GitLab.
:param gitlab_token: GitLab token.
"""
reana_hook_id = None
# FIXME: handle pagination of results
Copy link
Member

Choose a reason for hiding this comment

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

Do we need the FIXME here?

Copy link
Member Author

@mdonadoni mdonadoni Apr 17, 2024

Choose a reason for hiding this comment

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

This is fixed by #684 , but I have removed it anyway given that it will be fixed soon

mdonadoni added a commit to mdonadoni/reana-server that referenced this pull request Apr 17, 2024
mdonadoni added a commit to mdonadoni/reana-server that referenced this pull request Apr 17, 2024
BREAKING CHANGE: The REST API endpoint `gitlab_projects` now includes
pagination details.

Closes reanahub#518
@mdonadoni
Copy link
Member Author

Updated the commit title, and also the BREAKING CHANGE notice to read as follows:

BREAKING CHANGE: The REST API endpoint gitlab_projects now includes pagination details.

@mdonadoni mdonadoni merged commit 4d23c62 into reanahub:master Apr 17, 2024
12 checks passed
@mdonadoni mdonadoni deleted the filter-paginate-gitlab branch April 17, 2024 12:16
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.

gitlab: add support for filtering and pagination of projects
2 participants