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

Fix fallback feedback for events and pois #1811

Merged
merged 1 commit into from
Oct 29, 2022

Conversation

david-venhoff
Copy link
Member

Short description

This pr fixes submitting feedback about a fallback page- or poi-translation. With this pr, the default language translation gets used if required.
The actual language of the feedback should not get lost, though.

Proposed changes

  • Handle fallback translation in the poi and event endpoints

Resolved issues

Fixes: #1718


Pull Request Review Guidelines

@david-venhoff david-venhoff requested a review from a team as a code owner October 26, 2022 14:58
@MizukiTemma MizukiTemma self-requested a review October 27, 2022 11:05
Copy link
Member

@MizukiTemma MizukiTemma left a comment

Choose a reason for hiding this comment

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

Thank you 😃 It works as expected!

Can you add an entry to CHANGELOG.md?

Copy link
Member

@timobrembeck timobrembeck left a comment

Choose a reason for hiding this comment

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

Thanks a lot, works as expected 👍

integreat_cms/api/v3/feedback/poi_feedback.py Outdated Show resolved Hide resolved
integreat_cms/api/v3/feedback/event_feedback.py Outdated Show resolved Hide resolved
@codeclimate
Copy link

codeclimate bot commented Oct 28, 2022

Code Climate has analyzed commit 733d204 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 66.6% (50% is the threshold).

This pull request will bring the total coverage in the repository to 74.2% (0.0% change).

View more on Code Climate.

Copy link
Member

@timobrembeck timobrembeck left a comment

Choose a reason for hiding this comment

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

🎉

CHANGELOG.md Outdated Show resolved Hide resolved
Previously, an error was returned when the feedback was about a fallback translated object.
Now, the default language gets used if required.
The actual language of the feedback should not get lost, though.

Co-authored-by: Timo Ludwig <ludwig@integreat-app.de>
Copy link
Member

@timobrembeck timobrembeck left a comment

Choose a reason for hiding this comment

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

🚀

Copy link
Member

@MizukiTemma MizukiTemma left a comment

Choose a reason for hiding this comment

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

Thank you 👍

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.

Feedback about fallback translations cannot be submitted
3 participants