Skip to content

Ja vr private descriptions#131

Open
vrautela wants to merge 10 commits into
masterfrom
JA-VR-private-descriptions
Open

Ja vr private descriptions#131
vrautela wants to merge 10 commits into
masterfrom
JA-VR-private-descriptions

Conversation

@vrautela

Copy link
Copy Markdown
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

@varunthakkar1 varunthakkar1 left a comment

Copy link
Copy Markdown
Contributor

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

Comment thread service/src/main/java/com/codeforcommunity/processor/EventsProcessorImpl.java Outdated
Comment thread service/src/main/java/com/codeforcommunity/processor/EventsProcessorImpl.java Outdated
Comment thread service/src/main/java/com/codeforcommunity/processor/EventsProcessorImpl.java Outdated
@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

@varunthakkar1 varunthakkar1 left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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