-
-
Notifications
You must be signed in to change notification settings - Fork 887
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
API - Add support for event venues #1640
Comments
I would like to work on this issue. |
|
@wingman47 please update me on the schemas you'll be making, as I would be working on the frontend for this issue. |
I have done the following changes in the schemas for now - Created a new venue schema which contains id, name, description and capacity of the venue. Added an array of venues as objects that are available in an organisation in Organisation schema. Added venue property as an object in event schema. |
Hey @palisadoes, how to handle events that are recurring because the start and end dates can change based on whether it's a 'ONCE,' 'DAILY,' 'WEEKLY,' 'MONTHLY,' or 'YEARLY' thing. So, every time I want to check if the venue's free, I've got to recalculate the new start and end date while considering stuff like days in a month (which itself varies throughout the year), leap years etc. for every recurrances and if we add recurrance for the new event as well then it will become even more complex because we will have to calculate all the crossing of this new recurring event with other recurring events. Any suggestion to handle this situation? |
@palisadoes @Cioppolo14 are there any plans to implement recurring events? because right now it can be changed through apollo only. There's no option to change it from the frontend. If there would be recurring events then it would be very difficult to manage venue availibility for multiple recurring events with same location. |
Please refer to this PR. We will need to implement this in the Web UI soon after merging |
Do we currently have a direct way of knowing the number of check-ins for an event? If not, we should add a field in the event schema that represents that, which could be incremented every time an attendee checks in. |
Yes, that would be useful |
@palisadoes I am unassigning myself because current implementation for events have too many variables. Right now an event's start date and end date can have a difference of any number of days with any type of recurrance like 'WEEKLY', 'DAILY' etc. therefore it involves many different situations to handle venues availability. On top of that we also need to take care of start time and end time which makes the whole situation very complex to solve. |
Might I give it a try? It could take a couple days to understand the whole recurrence situation (I am looking into it), and then coming up with an effective strategy. |
|
Ok, I will complete it for single events. Thank you. |
Also, I think it'd be better if you keep pushing the incremental changes to your fork, so that I can add it as a remote and work with it on the frontend on the go. What do you think? |
Will let you know. For now, I have pushed my changes to event-venue branch. |
@palisadoes Are we going to have images for venues? |
@wingman47 You've restricted the mutations to (role: ADMIN). Could you clarify who would have access? Let me know if I'm wrong😅. |
My bad. You are correct. I have fixed it now. Thanks👍 |
Open a PR when ready. |
Will add both of them to the schema. I was writing tests for the new features I have added as of now. |
See the updated comment about venues being a limited list |
An event's venue must be optional |
The maximum venues allowed in an organization should be defined by us (like 5 -6 venues) or will it be editable by the admin of the organization? |
Admins will be able to add as many venues as they want. It's unlikely that there will be large numbers. |
As of now, only admins of an organisation can create a new venue and a user can only select the venues added by the admins when creating an event. |
No. Then there could be be infinite entries. |
@wingman47 are the queries done yet? Specifically the one that, given event start and end dates, start and end times, returns an array of available venues. |
I will push it by tonight. |
@wingman47 please add this. |
I have pushed the changes. |
An event check-in count is not necessary. Check-in counts will be tracked here: Please revert. You will be duplicating efforts. Talk to the person assigned this issue instead. |
Ok, I will revert the checkIn part. Should I keep the declination of any new request in addEventAttendee after the event's venue capacity is reached? |
Yes, thanks |
This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue. |
Is your feature request related to a problem? Please describe.
We need the ability to add API functionality to assign a venue to an event. Currently you can assign geographic coordinates, but you cannot also provide one of a list of pre-defined venues (eg. "Conference Room", "Sports Field" or "Theater") This would be a useful capability to add.
Describe the solution you'd like
The aim would be for Admins to do CRU activities (no deletions, but disabling/enabling) for venues on an Org screen, and for these venues to appear as options whenever events are scheduled.
The API must be able to:
Other
The schema must include support for:
This issue should be split into multiple PRs for ease of review:
Describe alternatives you've considered
Approach to be followed (optional)
Additional context
Related issues:
Potential internship candidates
Please read this if you are planning to apply for a Palisadoes Foundation internship
The text was updated successfully, but these errors were encountered: