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

Task/des 3047 create custom query hooks #1383

Open
wants to merge 3 commits into
base: feat/recon-portal-react
Choose a base branch
from

Conversation

sajithalapati16
Copy link

Overview:

PR Status:

  • Ready.
  • Work in Progress.
  • Hold.

Related Jira tickets:

Summary of Changes:

  • create a hooks for fetching queries
  • add :get_events hook
  • add: get_eventTypes hook
  • add: get_opentopo hook - preprocessing data from api to form center points
  • add: endpoints for opentopo data in Django - views.py & urls.py
  • config change in docker-compose-dev.all.debug.yml to increase the cache limit for memcached server

Testing Steps:

  1. make sure that - https://designsafe.dev/recon-portal/opentopo - fetches the data-
  2. after initial query- the above /opentopo endpoint should fetch data instantly.
  3. console log the - useGetEvents(); useGetEventTypes(); useGetOpenTopo();
  4. ensure the results match, what the Angular version queries returned.

UI Photos:

Notes:

  • Make sure you change the docker-compose-debug.all.yml based on the laptop processor and run the make start - to get the cache to work.

Copy link
Contributor

@fnets fnets left a comment

Choose a reason for hiding this comment

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

Unable to fetch data through the API, either through curl or the browser. Both on VPN and off. Request times out.

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.

3 participants