Navigation Menu

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

Api #11

Merged
merged 6 commits into from May 5, 2021
Merged

Api #11

merged 6 commits into from May 5, 2021

Conversation

AL9000
Copy link

@AL9000 AL9000 commented Apr 16, 2021

No description provided.

@AL9000 AL9000 requested a review from SebCorbin April 16, 2021 13:40
@AL9000
Copy link
Author

AL9000 commented Apr 16, 2021

@SebCorbin Is it usefull yet to add pagination?

@SebCorbin SebCorbin changed the base branch from dev to utilities April 16, 2021 13:58
api/views.py Outdated

class HistoryEntryListAPIView(ListAPIView):
serializer_class = HistoryEntryListSerializer
authentication_classes = [SessionAuthentication, ]
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we open history entries to everyone (question asked in chat)?

Copy link
Contributor

Choose a reason for hiding this comment

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

Pour les entrées d'historique, chacun doit implémenter sa propre vue (qui héritera d'une vue généraliste dans contrib\views.py) ==> Il faudra juste redéfinir la permission

@SebCorbin
Copy link
Contributor

SebCorbin commented Apr 16, 2021

Let's not paginate at the moment, even with 100 entries, it should be fast enough (and pagination would be hard on timelines)

api/serializers.py Outdated Show resolved Hide resolved
Copy link
Contributor

@SebCorbin SebCorbin left a comment

Choose a reason for hiding this comment

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

Good for me for now, we can handle the permissions question later (via a mixin maybe)

@SebCorbin SebCorbin marked this pull request as draft May 5, 2021 10:06
@SebCorbin SebCorbin marked this pull request as ready for review May 5, 2021 12:00
@SebCorbin SebCorbin merged commit 523135f into utilities May 5, 2021
@SebCorbin SebCorbin deleted the api branch May 5, 2021 12:02
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.

None yet

2 participants