-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
[back] feat: add the EntityContext
model
#1844
Merged
Merged
Changes from 19 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
df563e7
[back] rework: EntityContext now replaces poll.moderation
GresilleSiffle 6eacb59
[back] fix: entity_has_unsafe_context was returning an undefined var
GresilleSiffle d0c1691
[back] fix: the `FAQEntryAdmin.has_answer` was always returning True
GresilleSiffle 4e0a013
[back] chore: add the admin UI for model `EntityContext`
GresilleSiffle 20557fd
[back][front] fix: EntityContext origin not being properly saved
GresilleSiffle 6aa2a2a
[back] chore: display the EntityContext's origin in the admin
GresilleSiffle 257d368
[back] refactor: remove source_url and source_label, we...
GresilleSiffle 986d302
[back] fix: add missing migration file
GresilleSiffle a466afe
[back] feat: add the entity contexs to RecommendationSerializer seria…
GresilleSiffle c1e1168
[back][front] feat: make the FE aware of the new entity_contexts field
GresilleSiffle 68e2b17
Merge branch 'main' into back-add_entity_context
GresilleSiffle 6209098
[back] fix: RecommendationSerializer now properly return entity contexts
GresilleSiffle 09f4126
[front] feat: analysis page now displays entity contexts from asso
GresilleSiffle 22f5eb9
[front] fix: refresh the entity context when the UI lang changes
GresilleSiffle e58f5e7
[front] style: add a divider between contexts
GresilleSiffle cfed7c9
Merge branch 'main' into back-add_entity_context
GresilleSiffle 3294722
[back] tests: add tests for EntityPollRating.unsafe_recommendation_re…
GresilleSiffle 12795c2
[back] docs: document the EntityContext model
GresilleSiffle 1adb380
[back] refactor: merge all mig file into one
GresilleSiffle af15bc2
[front] refactor: remove unused translations
GresilleSiffle 7ec87fd
[front] style: display a border when a context is unsafe
GresilleSiffle 7d2a27f
[back] tests: add tests for the model `Poll`
GresilleSiffle 70a7cf8
[back] tests: use != context name in test_unsafe_recommendation_reaso…
GresilleSiffle 651a169
[back] tests: test the method `get_entity_contexts`
GresilleSiffle d80602d
lint
GresilleSiffle 9d5789c
[back] tests: add new tests for the recommendations API
GresilleSiffle 260fc14
[back] tests: add more tests to the recommendations API
GresilleSiffle 29dba1e
[back] refactor: re-order the fields of EntityContext in the admin form
GresilleSiffle 6ec16ad
[back] tests: clear cache between requests
GresilleSiffle a51b647
[back] perf: retrieve all context texts in a single query
GresilleSiffle 962af5b
[back] tests: also test that the context is translated
GresilleSiffle 313c9bf
[back] refactor: create single_poll_entity_contexts property
GresilleSiffle b54c959
[back] refactor: make single_poll_entity_contexts raise exception in …
GresilleSiffle f90f02d
[back] fix: wrong attribute name in EntityContextAdmin
GresilleSiffle File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Previously this method was always returning True.