Skip to content

Fourth iteration

Latest
Compare
Choose a tag to compare
@carlotacb carlotacb released this 15 Jan 01:12
· 9 commits to master since this release
5344f37

Fourth iteration

In this iteration, there are a lot of functionalities to cover the objective: Have applications flow and status.

In this iteration, also the swagger documentation has been correctly updated

Backend

In the application model we've added the status field with the options PENDING, INVITED, CONFIRMED, CANCELLED, INVALID, REJECTED, WAITLIST and ATTENDED.

Modified endpoints

GET /applications/participants/{event_id} → Added the application status.

GET /applications/myevents → Added the application status.

POST /applications/new → When creating a new application, the status is setting always to PENDING.

GET /events/upcoming/applications → This endpoint now is also returning the event_id.

New endpoint

GET /applications/status/{event_id} → Get the status of the application. If there is no application for that user and event_id, and it's participant, it returns 206 because it's not an error.

POST /applications/update/{application_id} → A admin user can update the application status.

POST /applications/cancel/{application_id} → A user can cancel an application made by them, only if the status is not INVALID or REJECTED.

POST /applications/confirm/{application_id} → A user can confirm an application made by them, only if the status is INVITED.

POST /applications/attend/{application_id} → A organizer or admin user can change an application status to ATTENDED.

Frontend

In this iteration a big refactor for the styles has been done

In the video you can see a stable version of the product in this iteration, the added functionalities are:

  • For ORGANIZERS and ORGANIZERS_ADMIN:

    • New view to see the participants and filter them by application status, and see the number of participants in each one.
    • In participants list, for confirmed applications, when the event is happening, a button to set the applicant to attend appears.
  • For ORGANIZERS_ADMIN:

    • Can change the application status when this is PENDING or WAITLIST (in participants page)
  • For PARTICIPANTS:

    • In my events page, now there is a chip to see the status of each application.
    • In my events page, the button for cancel appears if the status is no INVALID, CANCELLED or REJECTED
    • In my events page, the button for confirm appears if the status is INVITED
    • In events page, there is the application button but if the user has applied, then it shows the status instead of the button.
Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-01-14.at.16.32.16.mp4

Fixed bugs

  • [BE] My events (GET /applications/myevents) now are ordered descending by start_date.
  • [BE] Create a new event (POST /applications/new) now have error 403, you can not apply to an already started event.
  • [FE] In past events, the apply button does not appear.
  • [FE] Default diet is No restrictions
  • [BE] There was an error when saving the graduation date, it was using the birth_date instead of the graduation_date
  • [FE] The profile page was not showing correctly the career status of a user (work, study or nothing).
  • [FE] Buttons for changing the application status only appears if follows the criteria, attend is only when the event is started, and before it ends. And the other option of changing status only when application is not started.
  • [BE] When register a user, the email is being saved in lowercase.

What's Changed

  • [NO-TRACK] Swagger documentation updated by @carlotacb in #96
  • [ORG-91] Set status in applications by @carlotacb in #97
  • [ORG-93] Application status endpoint by @carlotacb in #98
  • [ORG-93] Correct paths and error by @carlotacb in #99
  • Change gitignore by @carlotacb in #100
  • [ORG-92] Change application status by @carlotacb in #101
  • [ORG-97] Participants list by @carlotacb in #102
  • [ORG-98] Edit participant status in admin view by @carlotacb in #103
  • [ORG-96] Application status is shown in MyEvents page by @carlotacb in #104
  • [ORG-99] Apply button is dynamic and shows the status if applied by @carlotacb in #105
  • [ORG-120] Cancel application endpoint by @carlotacb in #106
  • [ORG-119] Confirm application endpoint by @carlotacb in #107
  • [ORG-121] Cancel participation in my events page by @carlotacb in #108
  • [ORG-122] Confirm application button in my events by @carlotacb in #109
  • [ORG-123] Attended is added as application status by @carlotacb in #110
  • [ORG-124] Application attended endpoint by @carlotacb in #111
  • [ORG-125] Attended button in participants list by @carlotacb in #112
  • [ORG-35] Refactor styles by @carlotacb in #113
  • [ORG-133] Modify dialogs to not full width by @carlotacb in #114
  • [ORG-132] My events endpoint is ordered by start_date descending by @carlotacb in #115
  • [ORG-131] Application can not be creation in a already started event use case by @carlotacb in #116
  • Update organizator_ci.yml by @carlotacb in #95
  • [ORG-131] Buttons do not appear in event when it's past by @carlotacb in #117
  • [ORG-128] Nothing diet now is the default one when setting a profile by @carlotacb in #118
  • [ORG-126] Bug fixed about birth date and graduation date by @carlotacb in #119
  • [ORG-127] Fix bug in profile page that makes that work and study was not correctly set by @carlotacb in #120
  • [ORG-134] Action buttons in participants list should follow the criteria of dates by @carlotacb in #121
  • [ORG-137] Email to lowercase by @carlotacb in #122
  • [ORG-148] Fix scroll and remove check in create application by @carlotacb in #123

Full Changelog: v0.3...v0.4