Skip to content
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

[#3283] Remove oldstyle appointments flow #4872

Merged

Conversation

vaszig
Copy link
Contributor

@vaszig vaszig commented Nov 29, 2024

Closes #3283 partly

Changes

  • Updated code to adhere to the new appointments flow
  • Now we do not extract the appointment data from a submission
  • Removed frontend/admin code to manage appointment (tab)
  • Removed support for fixed customer fields
  • Removed "invalid input serializer -> return empty result list" in favour of raising a validation error exception

Checklist

Check off the items that are completed or not relevant.

  • Impact on features

    • Checked copying a form
    • Checked import/export of a form
    • Config checks in the configuration overview admin page
    • Problem detection in the admin email digest is handled
  • Release management

    • I have labelled the PR as "needs-backport" accordingly
  • I have updated the translations assets (you do NOT need to provide translations)

    • Ran ./bin/makemessages_js.sh
    • Ran ./bin/compilemessages_js.sh
  • Commit hygiene

    • Commit messages refer to the relevant Github issue
    • Commit messages explain the "why" of change, not the how

@vaszig vaszig marked this pull request as draft November 29, 2024 14:59
@vaszig vaszig force-pushed the cleanup/3283-remove-oldstyle-appointments-flow branch 2 times, most recently from 5768477 to 011defa Compare December 2, 2024 15:36
@vaszig vaszig marked this pull request as ready for review December 2, 2024 15:49
@vaszig vaszig mentioned this pull request Dec 3, 2024
23 tasks
Copy link
Member

@sergei-maertens sergei-maertens left a comment

Choose a reason for hiding this comment

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

OMG so much code being removed it's like it's almost Christmas!

src/openforms/appointments/tasks.py Outdated Show resolved Hide resolved
src/openforms/appointments/core.py Show resolved Hide resolved
src/openforms/submissions/query.py Outdated Show resolved Hide resolved
src/openforms/emails/templatetags/appointments.py Outdated Show resolved Hide resolved
@vaszig vaszig force-pushed the cleanup/3283-remove-oldstyle-appointments-flow branch from 011defa to 3c36035 Compare December 6, 2024 15:37
Copy link
Member

@sergei-maertens sergei-maertens left a comment

Choose a reason for hiding this comment

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

and obviously the CI failures need to be looked into!

Legacy version of appointments used to allow changing and cancelling an
appointment. Now only the latter one is allowed and implemented, so we
get rid of the code/texts which have to do with changing one.
The appointments views used to have a deprecation warning which had to do
with what we return to the frontend. Formio wasn't handling correctly
the raised error of a serializer
(serializer.is_valid(raise_exception=True)) so we had to return an empty
list instead.

Now, we have custome react code and we can make the API calls when we are ready
so we avoid errors, but if any they will now be raised.
@vaszig vaszig force-pushed the cleanup/3283-remove-oldstyle-appointments-flow branch 2 times, most recently from 7361e15 to 28d6769 Compare December 11, 2024 09:51
Deleted the tests which were refering to the old flow as well. The new
appointments do not have summary or steps so no need to test with such a
configuration.
@vaszig vaszig force-pushed the cleanup/3283-remove-oldstyle-appointments-flow branch from 28d6769 to b956f22 Compare December 11, 2024 10:18
Copy link

codecov bot commented Dec 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.57%. Comparing base (27a9852) to head (b956f22).
Report is 28 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4872      +/-   ##
==========================================
- Coverage   96.62%   96.57%   -0.05%     
==========================================
  Files         757      757              
  Lines       25942    25731     -211     
  Branches     3417     3379      -38     
==========================================
- Hits        25066    24850     -216     
- Misses        613      616       +3     
- Partials      263      265       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sergei-maertens sergei-maertens merged commit beb73a0 into master Dec 11, 2024
33 of 34 checks passed
@sergei-maertens sergei-maertens deleted the cleanup/3283-remove-oldstyle-appointments-flow branch December 11, 2024 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecations to remove in 3.0
3 participants