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

fix(602): fixing submission trend request #619

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

Conversation

paulushcgcj
Copy link
Contributor

@paulushcgcj paulushcgcj commented Feb 12, 2025

Description

Fixes an issue with the submission trends that happened during the aggregation phase, where the backend application was using all of the available resources to do the aggregation.

Fixes #602

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

  • No new tests are required
  • Updated existing tests

Checklist

  • I have read the CONTRIBUTING doc
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have already been accepted and merged

Further comments


Thanks for the PR!

Deployments, as required, will be available below:

Please create PRs in draft mode. Mark as ready to enable:

After merge, new images are deployed in:


Thanks for the PR!

Deployments, as required, will be available below:

Please create PRs in draft mode. Mark as ready to enable:

After merge, new images are deployed in:

@paulushcgcj paulushcgcj linked an issue Feb 12, 2025 that may be closed by this pull request
3 tasks
@paulushcgcj paulushcgcj marked this pull request as ready for review February 12, 2025 22:16
Copy link
Collaborator

@carolinemwood carolinemwood left a comment

Choose a reason for hiding this comment

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

Review by PO - changes approved

@paulushcgcj paulushcgcj assigned paulushcgcj and unassigned craigyu Feb 14, 2025
Copy link
Collaborator

@craigyu craigyu left a comment

Choose a reason for hiding this comment

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

Looks solid to me


// Generate the DTOs in the custom order
return yearMonths.stream()
.map(yearMonth -> new OpeningsPerYearDto(
yearMonth.getMonthValue(),
yearMonth.getYear(),
getMonthName(yearMonth.getMonthValue()),
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think the month name can be omitted, either here or in future endpoints, it's something front end can do quite well

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.

[BUGFIX]: 502 error on submission-trends
3 participants