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

Simplify infographics API usage (reuse Entities data) #1601

Merged
merged 27 commits into from
Jul 9, 2024

Conversation

NSUWAL123
Copy link
Collaborator

@NSUWAL123 NSUWAL123 commented Jun 27, 2024

What type of PR is this? (check all applicable)

  • πŸ• Feature
  • πŸ› Bug Fix
  • πŸ“ Documentation
  • πŸ§‘β€πŸ’» Refactor
  • βœ… Test
  • πŸ€– Build or CI
  • ❓ Other (please specify)

Related Issue

Describe this PR

This PR contains work to calculate the submissions count on the frontend for Form Submissions, Mapped vs Validated charts, and card counts.

For now I have commented the frontend API calls for the Submissions chart, once it's QA done then I will remove the code.

Screenshots

image

@github-actions github-actions bot added the frontend Related to frontend code label Jun 27, 2024
@NSUWAL123 NSUWAL123 marked this pull request as ready for review June 28, 2024 06:04
@NSUWAL123 NSUWAL123 marked this pull request as draft June 28, 2024 06:07
@NSUWAL123 NSUWAL123 marked this pull request as ready for review June 28, 2024 06:19
@NSUWAL123 NSUWAL123 marked this pull request as draft June 28, 2024 06:32
@NSUWAL123 NSUWAL123 marked this pull request as ready for review July 8, 2024 12:32
@NSUWAL123
Copy link
Collaborator Author

I have commented on previous API calls for the infographics for now. Once QA is done, I will remove all those commented API call codes.

@spwoodcock
Copy link
Member

It's ok to remove the commented code, as we still have a record in Git & can revert to the previous code easily πŸ‘

There are some minor pre-commit linting issues though:
https://results.pre-commit.ci/run/github/548162511/1720441836.7LLHaIC8Q-2lexFOZKM7Uw

@NSUWAL123
Copy link
Collaborator Author

Sure, I will have look on those

@NSUWAL123
Copy link
Collaborator Author

@spwoodcock, although I fixed the spelling pre-commit error again it's showing the error though the code has been modified.

@spwoodcock
Copy link
Member

Looks all good now!

@spwoodcock spwoodcock changed the title Fix/reduce infographics api Simplify infographics API usage (reuse Entities data) Jul 9, 2024
@spwoodcock spwoodcock merged commit 0dcfdc6 into hotosm:development Jul 9, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend Related to frontend code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants