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

changed from apolloclient to graphql-request #325

Merged
merged 15 commits into from
Mar 18, 2024
Merged

Conversation

ermish
Copy link
Contributor

@ermish ermish commented Dec 11, 2023

Resolves #369
Resolves #348
Resolves #366

What changed

Testing instructions

  • Tests aren't currently running (need to fix ASAP), so manually verify the page looks good and data is fetching properly

@ermish ermish added enhancement New feature or request design labels Dec 11, 2023
@ermish ermish self-assigned this Dec 11, 2023
Copy link

netlify bot commented Dec 11, 2023

Deploy Preview for findadoc ready!

Name Link
🔨 Latest commit bacd52e
🔍 Latest deploy log https://app.netlify.com/sites/findadoc/deploys/65f84abc8040070008a232d4
😎 Deploy Preview https://deploy-preview-325--findadoc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

socket-security bot commented Dec 11, 2023

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@antfu/[email protected] None 0 105 kB antfu
npm/@nuxt/[email protected] None 0 21.7 kB danielroe
npm/@nuxt/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +218 92.1 MB antfu
npm/@nuxt/[email protected] Transitive: environment, filesystem, shell +32 6.52 MB antfu
npm/@nuxt/[email protected] environment, network Transitive: eval, filesystem, shell, unsafe +218 92.1 MB antfu
npm/@nuxt/[email protected] environment, filesystem, network Transitive: shell, unsafe +141 21.3 MB danielroe
npm/@nuxt/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +173 69.8 MB danielroe
npm/@unhead/[email protected] None 0 16.1 kB harlan_zw
npm/@unhead/[email protected] None 0 9.91 kB harlan_zw
npm/@unhead/[email protected] environment Transitive: eval, filesystem, unsafe +15 41.4 MB harlan_zw
npm/@vitejs/[email protected] environment Transitive: eval, filesystem, network, shell, unsafe +23 52.1 MB vitebot
npm/[email protected] None 0 4.83 kB lukekarrys
npm/[email protected] None 0 3.4 kB kevva
npm/[email protected] None 0 26.3 kB antfu
npm/[email protected] None 0 1.33 kB feedic
npm/[email protected] None 0 16.9 kB pi0
npm/[email protected] None 0 11.1 kB pi0
npm/[email protected] None 0 25.6 kB rich_harris
npm/[email protected] None 0 15.2 kB antfu
npm/[email protected] environment, filesystem, network, shell 0 135 kB evanw
npm/[email protected] None 0 22.8 kB dap
npm/[email protected] environment 0 24.6 kB pi0
npm/[email protected] Transitive: environment, network +12 2 MB pi0
npm/[email protected] None 0 42.7 kB pi0
npm/[email protected] None 0 3.54 kB sindresorhus
npm/[email protected] None 0 26.1 kB kriszyp
npm/[email protected] None 0 19.4 kB ljharb
npm/[email protected] None 0 23.2 kB lukeed
npm/[email protected] environment, filesystem, shell +2 64.8 kB soda
npm/[email protected] None 0 206 kB dougwilson
npm/[email protected] environment, filesystem, network Transitive: shell, unsafe +101 11.2 MB pi0
npm/[email protected] None +1 5.36 MB pi0
npm/[email protected] environment, network +3 915 kB pi0
npm/[email protected] environment, filesystem, network +3 540 kB npm-cli-ops
npm/[email protected] None 0 30.7 kB pi0
npm/[email protected] None 0 11.7 kB coolaj86
npm/[email protected] None 0 7.43 kB ionicabizau
npm/[email protected] Transitive: environment +2 983 kB simple-git, steveukx
npm/[email protected] filesystem 0 20.7 kB lukeed
npm/[email protected] None +1 57.9 kB gkz
npm/[email protected] None 0 357 kB natemoo-re
npm/[email protected] None 0 7.87 kB pi0
npm/[email protected] Transitive: environment, network +5 1.48 MB pi0
npm/[email protected] filesystem Transitive: environment, eval, unsafe +56 50.3 MB posva
npm/[email protected] Transitive: environment, filesystem, network +28 2.84 MB pi0
npm/[email protected] Transitive: environment +2 70.1 kB dap
npm/[email protected] environment, filesystem Transitive: eval, network, shell, unsafe +24 15.7 MB sxzz
npm/[email protected] environment, filesystem Transitive: eval, network, shell, unsafe +67 24 MB webfansplz
npm/[email protected] None +1 144 kB danielroe
npm/[email protected] None 0 4.86 kB pi0

🚮 Removed packages: npm/@aashutoshrathi/[email protected], npm/@apollo/[email protected], npm/@jest/[email protected], npm/@sinclair/[email protected], npm/@swc/[email protected], npm/@vitejs/[email protected], npm/@vitest/[email protected], npm/@vitest/[email protected], npm/@vitest/[email protected], npm/@vitest/[email protected], npm/@vitest/[email protected], npm/@vue/[email protected], npm/@wry/[email protected], npm/@wry/[email protected], npm/@wry/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected]

View full report↗︎

@ermish ermish marked this pull request as ready for review February 3, 2024 14:38
Copy link
Contributor

@Anissa3005 Anissa3005 left a comment

Choose a reason for hiding this comment

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

As a Junior I approve 👌

Copy link
Contributor

@theyokohamalife theyokohamalife left a comment

Choose a reason for hiding this comment

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

Netlify fails to build with these changes. It looks like we're making a bad request to the API:
Screenshot 2024-02-18 at 4 44 21 PM

@NabbeunNabi NabbeunNabi force-pushed the ermish/graphql-request branch from b1fe24a to df486cb Compare March 11, 2024 11:24
Copy link

socket-security bot commented Mar 11, 2024

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package Note
Telemetry npm/@nuxt/[email protected]
  • Note: Can be disabled by setting the environment variable NUXT_TELEMETRY_DISABLED=1
Install scripts npm/[email protected]

View full report↗︎

Next steps

What is telemetry?

This package contains telemetry which tracks how it is used.

Most telemetry comes with settings to disable it. Consider disabling telemetry if you do not want to be tracked.

What is an install script?

Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.

Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/[email protected] or ignore all packages with @SocketSecurity ignore-all

@NabbeunNabi
Copy link
Contributor

The checks pass now. It is not resolving the duplicate locations still from what I see but I fixed the build problem I believe. I can remove those semicolons as well if they aren't supposed to be there. The problem was the yarn.lock needed to be rebuilt since since it was throwing errors for toUpperCase, and then the endpoint wasn't correct in the utils/graphql.ts

@NabbeunNabi NabbeunNabi self-assigned this Mar 12, 2024
@NabbeunNabi
Copy link
Contributor

Just as a question. Does it resolve the bottom two issues as well or just the original one?

@NabbeunNabi
Copy link
Contributor

I do not think this currently resolves the duplicate search results. I do not know what the best solution would be but I think if there is a script that creates a lookup like { city: count} as the key value pair we could dynamically render it using v-for then later. But I do not know if we need this extra function in the script or if there is a better solution. Should it be solved on the frontend/backend/in the store?

@ermish
Copy link
Contributor Author

ermish commented Mar 14, 2024

I do not think this currently resolves the duplicate search results. I do not know what the best solution would be but I think if there is a script that creates a lookup like { city: count} as the key value pair we could dynamically render it using v-for then later. But I do not know if we need this extra function in the script or if there is a better solution. Should it be solved on the frontend/backend/in the store?

@NabbeunNabi that's a good question! we could solve in either the front end or backend. For now, I think front-end will be easier and should be fine for the result quantity. If it gets too heavy, we can shift to the backend.

allcontributors bot and others added 8 commits March 18, 2024 22:32
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
* fix: debug the ESLint config file

Previously, the eslint file is not applying the linting and styling rules to our code

* chore: format files with new linting rules

* fixup! chore: format files with new linting rules

---------

Co-authored-by: theyokohamalife <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* test: add tests for localeStore

Previously, there were no tests present for the localeStore. In this commit I have created tests for localeStore

* fixup! test: add tests for localeStore
This change adds the board members, developers and links to their
linkedIn profiles for the ones that are currently available. There are
tests for the additions as well.

Changed the styling for the map container and main app in order to not
have the footer cut through parts of the page.
@ermish
Copy link
Contributor Author

ermish commented Mar 18, 2024

ok everything is merged, working, CI builds, and ready for review again @theyokohamalife !

Copy link
Contributor

@theyokohamalife theyokohamalife left a comment

Choose a reason for hiding this comment

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

LGTM ✨ Thank you!

@ermish ermish merged commit 11d3b34 into main Mar 18, 2024
8 of 9 checks passed
@ermish ermish deleted the ermish/graphql-request branch March 18, 2024 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design enhancement New feature or request
Projects
None yet
4 participants