Skip to content

Implement eTag to the Modal for Cases #7790

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

Closed
wants to merge 2 commits into from

Conversation

estebangallego
Copy link
Contributor

@estebangallego estebangallego commented Dec 3, 2024

Issue & Reproduction Steps

To improve performance and user experience, we need to preload all cases into the cache when the + Case button is clicked. This reduces load times and ensures a smoother interaction.

In this scenario, we utilize the ETag implementation to enhance the caching mechanism for the start_processes endpoint.

Solution

  • Implemented the ETag middleware for the start_processes endpoint to enable efficient response caching and validation.

How to Test

  1. Ensure the application has a substantial number of cases to work with.
  2. Click the + Case button to initiate the modal.
  3. Verify that a 304 Not Modified response is returned for cached data, confirming the ETag implementation is functioning correctly.

Screenshot 2024-12-03 at 12 40 18 PM

  • ci:deploy

Related Tickets & Packages

Code Review Checklist

  • I have pulled this code locally and tested it on my instance, along with any associated packages.
  • This code adheres to ProcessMaker Coding Guidelines.
  • This code includes a unit test or an E2E test that tests its functionality, or is covered by an existing test.
  • This solution fixes the bug reported in the original ticket.
  • This solution does not alter the expected output of a component in a way that would break existing Processes.
  • This solution does not implement any breaking changes that would invalidate documentation or cause existing Processes to fail.
  • This solution has been tested with enterprise packages that rely on its functionality and does not introduce bugs in those packages.
  • This code does not duplicate functionality that already exists in the framework or in ProcessMaker.
  • This ticket conforms to the PRD associated with this part of ProcessMaker.

@tokensPM
Copy link

tokensPM commented Dec 3, 2024

QA server K8S was successfully deployed https://ci-2c97f2b7dd.engk8s.processmaker.net

@eiresendez
Copy link
Contributor

Closing in favor of:

#7892

@eiresendez eiresendez closed this Jan 13, 2025
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.

3 participants