question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Associate Venues with Chapters

See original GitHub issue

Do we want each venue to belong to one chapter? There are couple of reasons I can see to do this, one practical and one technical.

The practical reason is that a venue is typically going to be close to the chapter members and so forcing event creators to choose from all possible venues is unhelpful. There is also the potential for confusion if admins of multiple chapters update the same venue.

The technical reason is that the authorisation logic uses the target chapterId to determine if a user’s request should be rejected. If chapterId is not sent as part of the request, then chapter admins will not be able to manage venues. There are a few potential workarounds:

  1. Give chapter admins the VenuesManage instance role
  2. Handle the authorization logic in the resolver
  3. Rework authorization logic

Issues:

  1. is pretty awkward. In part because it’s messy (users shouldn’t need more than one role) and in part because instance permissions cannot be stopped by bans (yet).
  2. mixes up concerns
  3. is the nuclear option, since I’m not sure what we’d do instead

Summing up

Given that there are positive reasons to want this as well as a lack of obvious workarounds, I think this is the way to go.

Any concerns before I get on with implementing this?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
ojeytonwilliamscommented, Jul 14, 2022

Reopening since there is more to be done. Context: https://github.com/freeCodeCamp/chapter/pull/1212#issuecomment-1184301773

1reaction
allellacommented, Jul 11, 2022

Sure, if you can start with authorization for chapter specific and it won’t complicate something like adding a global venues flag, then that sounds like a decent MVP.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chapter 9 – Venue, Layout and Reservations – A Pop-up ...
There is an important relationship between the venue, layout, and reservation characteristics associated with the development of the pop-up restaurant plan.
Read more >
Innovative venue sourcing: Minnesota Chapter hosts event at ...
Hannah Weishalla talks about the Minnesota Chapter's recent conference held at a business partner's facility and shares tips for other ...
Read more >
IACC | Meeting Space | Conference Centers | Meeting Venues
Find conference centers, meeting space and venues around the world with IACC. IACC is innovating the conference centre industry.
Read more >
Partner Venues | Herban Feast
Partner Venues · Bella Luna Farms · Bellevue Arts Museum · Chateau Lill · JM Cellars · LaSalle Reserve · MOHAI · Parties...
Read more >
International Association of Venue Managers
Representing public assembly venues from around the globe, IAVM's 6,800+ ... ”As a venue professional, IAVM continually provides me with opportunities for ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found