Skip to content

[create_timepoint] Add error swal - #9502

Open
victori444 wants to merge 4 commits into
aces:mainfrom
victori444:2024_12_03_Create_Timepoint_Swal_Bug
Open

victori444 wants to merge 4 commits into
aces:mainfrom
victori444:2024_12_03_Create_Timepoint_Swal_Bug

Conversation

@victori444

@victori444 victori444 commented Dec 4, 2024 •

Copy link
Copy Markdown
Contributor

Brief summary of changes

In the Create Timepoint module, if there was a PHP error upon submission, the entered data would not save without any error message. This adds an error swal if a PHP error occurs

Screenshot 2026-12-04 at 11 08 48 AM

Testing instructions (if applicable)

  1. Revert the changes made in this PR to cause a PHP error
  2. In the Create Timepoint module of any candidate, create a new valid visit
  3. Submit and verify that the error swal appears
  4. Restore the changes in the create_timepoint class (such that there are no PHP errors) and check that new visits can be created

Link(s) to related issue(s)

@driusan

driusan commented Dec 5, 2024

Copy link
Copy Markdown
Collaborator

I'm trying to test this but I'm still getting a success swal.

Screenshot

@driusan driusan added this to the 27.0.0 milestone Feb 17, 2025

@CamilleBeau CamilleBeau left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I just re-tested this and it's working well on my VM. We may want someone else to test because I recall there being an issue on someone else's VM even though it was working on mine.

@CamilleBeau CamilleBeau added the Passed manual tests PR has been successfully tested by at least one peer label Sep 18, 2025
@racostas racostas self-assigned this Oct 30, 2025
@racostas racostas removed the Passed manual tests PR has been successfully tested by at least one peer label Oct 30, 2025
@racostas
racostas self-requested a review October 30, 2025 14:54

@racostas racostas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LOL, I'm getting a different "result" from the test that the two previous ones:

I do got a 500 error, but I don't the the swal to show the error neither to show that is was success.

@racostas

Copy link
Copy Markdown
Contributor

In conclusion, when we got a PHP error, the swal is not showing it so the PR still need work since this was the goal
image

@CamilleBeau CamilleBeau added the State: Needs work PR awaiting additional work by the author to proceed label Jan 26, 2026
@victori444
victori444 force-pushed the 2024_12_03_Create_Timepoint_Swal_Bug branch from 425b24a to d0d04eb Compare December 4, 2026 16:12
@victori444 victori444 removed the State: Needs work PR awaiting additional work by the author to proceed label Dec 4, 2026

This branch has not been deployed

No deployments
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.

[create_timepoint] Success swal appears even on failure

4 participants