deep-learning-indaba / Baobab

Baobab is an open source multi-tenant web application designed to facilitate the application and selection process for large scale meetings within the machine learning and artificial intelligence communities globally. Supported by the Deep Learning Indaba
http://www.deeplearningindaba.com
Apache License 2.0
55 stars 34 forks source link

Update EventConfig component to support adding new events #816

Open avishkar58 opened 4 years ago

avishkar58 commented 4 years ago

Depends on #773

Update the EventConfig component to support creating a new event. If no event is passed in this.props.event, this page should enter a "create" mode, which needs the following features

greeffjean commented 3 years ago

Hi, Im a little confused with the instructions, so first of all

  1. This feature will render if there is not event present as prop.
  2. But if there is no event, and no event id how am I supposed to create and event when event.service create method requires this: export function create(event) { return axios .post( baseUrl +/api/v1/event, { name: event.name, description: event.description, start_date: event.start_date, end_date: event.end_date, key: event.key, organisation_id: event.organisation_id, email_from: event.email_from, url: event.url, application_open: event.application_open, application_close: event.application_close, review_open: event.review_open, review_close: event.review_close, selection_open: event.selection_open, selection_close: event.selection_close, offer_open: event.offer_open, offer_close: event.offer_close, registration_open: event.registration_open, registration_close: event.registration_close }, { headers: authHeader() } )

I hope im not missing anything obvious?

greeffjean commented 3 years ago

Add Event Button: <NavLink to="/eventConfig" > appears to need an eventKey, there is no event key yet set on the Home page, am I missing something ?

avishkar58 commented 3 years ago

Hi Jean,

You're meant to create the event... If there is any field that is required like the event key, please add an input for the user to enter it, sorry for not making that clear in the issue.

On Thu, 26 Nov 2020, 11:46 Jean Charl Greeff, notifications@github.com wrote:

Add Event Button: appears to need an eventKey, there is no event key yet set on the Home page, am I missing something ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/deep-learning-indaba/Baobab/issues/816#issuecomment-734252114, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABFV53EATFUJIIAGHW7YNDTSRY52NANCNFSM4TOUSX6Q .