Skip to content
This repository was archived by the owner on Sep 25, 2025. It is now read-only.

Feat(api, db): add venue_type to events - #429

Merged
allella merged 14 commits into
freeCodeCamp:masterfrom
gh-23378:feat/event-venue-type
Nov 4, 2020
Merged

allella merged 14 commits into
freeCodeCamp:masterfrom
gh-23378:feat/event-venue-type

Conversation

@gh-23378

@gh-23378 gh-23378 commented Oct 31, 2020 •

Copy link
Copy Markdown
Contributor
  • I have read Chapter's contributing guidelines.
  • My pull request has a descriptive title (not a vague title like Update README.md).
  • My pull request targets the master branch of Chapter.

Closes #382

Added venue_type enum to events, made venue on events nullable because online events will have no venue. UI work will be handled in a future issue.

depends on #424

{venue.name}
</MenuItem>
))}
<MenuItem>None</MenuItem>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is just to avoid breaking the create/update event forms until the UI work for this issue is done.

I did see a warning in the browser for this: A component is changing an uncontrolled input of type undefined to be controlled. Input elements should not switch from uncontrolled to controlled (or vice versa). Decide between using a controlled or uncontrolled input element for the lifetime of the component.

What's the correct way to add a null/undefined value to a form like this? Empty string causes an error because gql is expecting an integer. I am new to React :)

@allella

allella commented Nov 3, 2020

Copy link
Copy Markdown
Contributor

@KatieN #424 was merged. This one is now showing conflicts.

@gh-23378

gh-23378 commented Nov 4, 2020

Copy link
Copy Markdown
Contributor Author

Got them 😃

@allella
allella merged commit 23e1801 into freeCodeCamp:master Nov 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add venue_type to events

2 participants