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

Feat/dashbaord api calls #313

Merged
merged 11 commits into from
May 23, 2024
Merged

Feat/dashbaord api calls #313

merged 11 commits into from
May 23, 2024

Conversation

jazzgrewal
Copy link
Collaborator

@jazzgrewal jazzgrewal commented May 15, 2024

Description

Please provide a summary of the change and the issue fixed. Please include relevant context. List dependency changes.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Tested Locally

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!

Any successful deployments (not always required) will be available below.

Backend: https://nr-silva-313-backend.apps.silver.devops.gov.bc.ca/actuator/health
Frontend: https://nr-silva-13-frontend.apps.silver.devops.gov.bc.ca

Once merged, code will be promoted and handed off to following workflow run.
Main Merge Workflow

Copy link
Member

@DerekRoberts DerekRoberts left a comment

Choose a reason for hiding this comment

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

Please write tests.

frontend/src/services/OpeningService.js Outdated Show resolved Hide resolved
frontend/src/services/OpeningService.js Outdated Show resolved Hide resolved
Copy link

@mishraomp mishraomp left a comment

Choose a reason for hiding this comment

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

my recommendation is to avoid logic in components and use the store, which makes it easier to write unit tests, though I don't see tests here, but would recommend that as well

@webgismd
Copy link

I am happy to chat about next steps or where I can support this, if we block things as they currently are, what are some of the tasks we can address short term or long term.. I know this is end of sprint, it could be a good time to discuss in a retrospective with team? @jazzgrewal @DerekRoberts @RMCampos @PMAKIA1

@RMCampos
Copy link

RMCampos commented May 15, 2024

what are some of the tasks we can address short term or long term..

We have some tasks on the backlog already. But I'd say we can work on some definitions such as the one @mishraomp brought up, and avoid hardcoded URLs. Retro is a perfect plate to chat about this.

Copy link

@RMCampos RMCampos left a comment

Choose a reason for hiding this comment

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

Good job Jazz! 🎉 💯

Somethings to keep in mind, possible tasks for the backlog, due to end of the sprint:

  • If my memory it's not failing, the Openings per Year chart it's now called "Openings Trends" or something 😆
  • On the Openings Per Year chart, once selected the Status, it's not possible to get back to the original filter (no status)
  • On the Free grow milestone declarations chart the labels are not sorted. The label "18 monts" should be the last one.
  • Both charts on the left must get their input filters aligned with labels and the date input fields.

@DerekRoberts
Copy link
Member

DerekRoberts commented May 15, 2024

@jazzgrewal @RMCampos Would you like a hand? I can pitch in for the vars and routing, but not tests.

@DerekRoberts
Copy link
Member

@jazzgrewal This is a code review, not (intentionally) an argument. Please elaborate?

@DerekRoberts
Copy link
Member

Spoke with @jazzgrewal. Tests are going to be addressed in an upcoming issue. This can be approved when we've tackled the hard links.

@DerekRoberts
Copy link
Member

@jazzgrewal @RMCampos Hard coding should be fixed. Please confirm?

@jazzgrewal
Copy link
Collaborator Author

@DerekRoberts
can we not reuset the VITE_BACKEND_URL for the BACKEND URL, I think the values are thesame for both right?
image

@DerekRoberts
Copy link
Member

@jazzgrewal Not quite! VITE_BACKEND_URL has the port at the end. I also couldn't find where it was being consumed, so it could be a candidate for removal.

@jazzgrewal
Copy link
Collaborator Author

@DerekRoberts I think the port number is just for the localhost, for the test and prod we just have link without port numbers :)

@DerekRoberts
Copy link
Member

@jazzgrewal Here! If you really want to use that envar we have to clip off :443 or find where it's being consumed to make adjustments.

value: "https://${NAME}-${ZONE}-backend.${DOMAIN}:443"

@jazzgrewal
Copy link
Collaborator Author

I tried putting:
VITE_BACKEND_URL = https://nr-silva-test-backend.apps.silver.devops.gov.bc.ca:443
with 443, doesn't matter the api calls are still good. So this can be good to go without having to add another variable. and regardless when we are adding env variables in VITE we need to have the VITE. prefix or it just wont work.

@jazzgrewal jazzgrewal merged commit 12be108 into main May 23, 2024
15 checks passed
@jazzgrewal jazzgrewal deleted the feat/dashbaordApiCalls branch May 23, 2024 21:40
@DerekRoberts
Copy link
Member

@jazzgrewal Good job! Glad this is done. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants