-
Notifications
You must be signed in to change notification settings - Fork 1
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
Ja vr private descriptions #131
base: master
Are you sure you want to change the base?
Conversation
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.
You need to add similar get and set methods for the autogenerated jooq classes, otherwise your route and tests are not going to work.
I like the logic you used though. I think it will work if you do it this way.
I also need verification that the route works, so you may need to do Postman testing
service/src/main/java/com/codeforcommunity/processor/EventsProcessorImpl.java
Outdated
Show resolved
Hide resolved
service/src/main/java/com/codeforcommunity/processor/EventsProcessorImpl.java
Show resolved
Hide resolved
service/src/main/java/com/codeforcommunity/processor/EventsProcessorImpl.java
Outdated
Show resolved
Hide resolved
service/src/main/java/com/codeforcommunity/processor/EventsProcessorImpl.java
Show resolved
Hide resolved
service/src/main/java/com/codeforcommunity/processor/EventsProcessorImpl.java
Outdated
Show resolved
Hide resolved
service/src/main/java/com/codeforcommunity/processor/PublicEventsProcessorImpl.java
Show resolved
Hide resolved
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.
Nice work. Please send in development channel next time.
} | ||
|
||
// hide the private description if the user isn't registered and they're not an admin | ||
if (!userRegisteredForEvent && userData.getPrivilegeLevel() != PrivilegeLevel.ADMIN) { |
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.
@varunthakkar1 This line should allow admins to always see the private description
Why
What benefit does this bring to the end user? Or, what benefit does this bring to developers
working in the codebase?
Ticket #163
This PR
Create/edit event forms should now include private descriptions
Backend/DB must hold a string field for private descriptions
API must respond with extra private description field
Frontend must display this field when registered users view the event on the single event view page