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

[#4518] Add log entries for prefill to Submission #5092

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vaszig
Copy link
Contributor

@vaszig vaszig commented Feb 7, 2025

Closes #4518

Changes

Some AVG logs are needed in the submission admin inline logging so decided to return a queryset based on the included tags and not the other way around. This let us have events with multiple tags and choose which ones we need according to the context.

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
  • Dockerfile/scripts

    • Updated the Dockerfile with the necessary scripts from the ./bin folder
  • Commit hygiene

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

Comment on lines -491 to -512
def appointment_update_start(appointment: AppointmentInfo, plugin):
_create_log(
appointment.submission,
"appointment_update_start",
plugin=plugin,
)


def appointment_update_success(appointment: AppointmentInfo, plugin):
_create_log(
appointment.submission,
"appointment_update_success",
plugin=plugin,
)


def appointment_update_failure(appointment: AppointmentInfo, plugin, error):
_create_log(
appointment.submission,
"appointment_update_failure",
plugin=plugin,
error=error,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed this since we do not support update in the new appointments flow (have to cancel first and create a new one).

Some AVG logs are needed in the submission admin inline logging so
decided to return a queryset based on the included tags and not the
other way around. This let us have events with multiple tags and choose
which ones we need according to the context.
@vaszig vaszig force-pushed the feature/4518-add-log-entries-for-prefill-plugins-to-submissions branch from ef91e13 to 9613293 Compare February 7, 2025 13:36
Copy link

codecov bot commented Feb 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.74%. Comparing base (47c74d6) to head (9613293).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5092      +/-   ##
==========================================
- Coverage   96.74%   96.74%   -0.01%     
==========================================
  Files         771      771              
  Lines       26636    26631       -5     
  Branches     3467     3467              
==========================================
- Hits        25770    25765       -5     
+ Misses        605      604       -1     
- Partials      261      262       +1     

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

@vaszig vaszig requested a review from robinmolen February 10, 2025 11:58
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.

Add log entries for prefill plugins to submissions
1 participant