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

News Flash API #2697

Closed
atalyaalon opened this issue Sep 7, 2024 · 8 comments · Fixed by #2707
Closed

News Flash API #2697

atalyaalon opened this issue Sep 7, 2024 · 8 comments · Fixed by #2707
Assignees
Milestone

Comments

@atalyaalon
Copy link
Collaborator

currently no pagination in News Flash API
(See this issue in FE)

Hence we want to modify News Flash API as described here, without changing current functionality.
If current functionality is changed, please coordinate with SejoB ( FE tem) for adjustments needed in FE of current API.

@atalyaalon
Copy link
Collaborator Author

@ziv17 this is currently top priority.

@atalyaalon
Copy link
Collaborator Author

Also. Previous BE volunteer working on this and talked to SejoB (Sergey) wrote the following:
Screenshot 2024-09-07 at 19 53 17

@atalyaalon atalyaalon added this to the v0.18.0 milestone Sep 7, 2024
@atalyaalon
Copy link
Collaborator Author

relevant pr that removes unused API: https://github.com/data-for-change/anyway/pull/2644/files

@ziv17
Copy link
Collaborator

ziv17 commented Sep 7, 2024

Hi @atalyaalon ,
The PR that I prapare should build upon PR #2644? (or it will be merged before that PR?)
Which news-flash APIs, or URLs are included in the issue?

@atalyaalon
Copy link
Collaborator Author

@ziv17 I'm working on merging it today, so you'll build upon it (After merge)
This issue is on API urls in /api/news-flash
Note that exist a specific url of specific id: /api/news-flash/<int:news_flash_id>
As mentioned we want to change this api and make sure we're adding the offset.

@atalyaalon
Copy link
Collaborator Author

@ziv17 merged :) you can use dev branch

@ziv17
Copy link
Collaborator

ziv17 commented Sep 8, 2024

Hi @atalyaalon ,
Do we want to keep both offset and pageNumer (and limit with pageSize)?
If not, to deprecate offset and limit?

@atalyaalon
Copy link
Collaborator Author

atalyaalon commented Sep 9, 2024

@ziv17 I suggest coordinating this decision with Sergey.
We can deprecate some fields, but make sure we're either backward compatible OR that we modify FE and BE at the same time.

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 a pull request may close this issue.

2 participants