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 #176

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

Conversation

vrautela
Copy link
Contributor

Issue

Closes #163

Changes

Create/edit event forms should now include private descriptions
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 02:07
@coveralls
Copy link

coveralls commented Jul 21, 2021

Pull Request Test Coverage Report for Build 1145445894

  • 1 of 9 (11.11%) changed or added relevant lines in 4 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.003%) to 11.771%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/containers/singleEvent/index.tsx 0 1 0.0%
src/api/protectedApiClient.ts 1 3 33.33%
src/components/event-details/EventDetails.tsx 0 2 0.0%
src/containers/upcoming-events/ducks/thunks.ts 0 3 0.0%
Totals Coverage Status
Change from base Build 1121163958: -0.003%
Covered Lines: 187
Relevant Lines: 1340

💛 - Coveralls

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 job on the form. I fixed the styling on the single event page but overall looks good! Also I would like for you guys to send this in the development channel on Slack so other people see you have an open PR.

@rymaju
Copy link
Member

rymaju commented Aug 19, 2021

Does not show if not logged in:
image
Shows if registered
image
Shows if admin and not registered
image

Copy link
Member

@rymaju rymaju left a comment

Choose a reason for hiding this comment

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

LGTM 💯 Small nitpicks here and there but looks solid overall.

dispatch(upcomingEvents.loading());
return publicApiClient
.getUpcomingEvents()
return eventsFetcher()
Copy link
Member

Choose a reason for hiding this comment

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

⛏️ Using a noun for a function name is generally bad, we would rather use a verb, i.e. fetchEvents()

return (dispatch, getState, { publicApiClient }) => {
return (dispatch, getState, { publicApiClient, protectedApiClient }) => {
const eventsFetcher: () => Promise<EventInformation[]> =
getPrivilegeLevel(getState().authenticationState.tokens) ===
Copy link
Member

Choose a reason for hiding this comment

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

⛏️ Not sure why we cant return this value directly and avoid defining a variable here.

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.

Private descriptions / Zoom link feature
5 participants