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

Ja vr private descriptions #131

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Conversation

vrautela
Copy link
Contributor

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

@vrautela vrautela requested review from rymaju and varunthakkar1 July 21, 2021 01:58
Copy link
Contributor

@varunthakkar1 varunthakkar1 left a 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

@ja0911 ja0911 requested a review from varunthakkar1 August 1, 2021 21:56
@ja0911 ja0911 dismissed varunthakkar1’s stale review August 2, 2021 15:57

Resolved changes requested

Copy link
Contributor

@varunthakkar1 varunthakkar1 left a 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) {
Copy link
Contributor

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

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.

4 participants