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

Reduce response payload size for scenarios tab #7354

Open
wants to merge 3 commits into
base: staging
Choose a base branch
from

Conversation

Elmacioro
Copy link
Contributor

@Elmacioro Elmacioro commented Dec 17, 2024

Describe your changes

Currently when we enter scenarios tab we fetch a lot of data regarding them. Some of the data isn't used at that level. It only bloats the response payload slowing down loading the tab.

In our Nussknacker instance we have a lot of scenarios so response payloads for that tab can reach around 7.6 MB. The biggest unused attribute that is sent along with the scenarios' details is buildInfo by removing it and a few other optional fields not needed at that level we can lower the size of response by over 1 MB. Which can help us a bit with long load times of scenarios tab.

Checklist before merge

  • Related issue ID is placed at the beginning of PR title in [brackets] (can be GH issue or Nu Jira issue)
  • Code is cleaned from temporary changes and commented out lines
  • Parts of the code that are not easy to understand are documented in the code
  • Changes are covered by automated tests
  • Showcase in dev-application.conf added to demonstrate the feature
  • Documentation added or updated
  • Added entry in Changelog.md describing the change from the perspective of a public distribution user
  • Added MigrationGuide.md entry in the appropriate subcategory if introducing a breaking change
  • Verify that PR will be squashed during merge

@github-actions github-actions bot added the docs label Dec 17, 2024
@Elmacioro Elmacioro force-pushed the reduce-response-for-services-tab branch from 7befc41 to 34b783b Compare December 17, 2024 15:48
@Elmacioro Elmacioro marked this pull request as ready for review December 17, 2024 15:49
@Elmacioro Elmacioro force-pushed the reduce-response-for-services-tab branch 3 times, most recently from 23934d7 to 40e2e7e Compare December 19, 2024 09:03
Copy link
Contributor

created: #7365
⚠️ Be careful! Snapshot changes are not necessarily the cause of the error. Check the logs.

@Elmacioro Elmacioro force-pushed the reduce-response-for-services-tab branch from 40e2e7e to 159a014 Compare December 20, 2024 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant