Skip to content

Conversation

@abeglova
Copy link
Contributor

@abeglova abeglova commented Jul 1, 2024

What are the relevant tickets?

closes https://github.com/mitodl/hq/issues/4728

Description (What does it do?)

This replaces the current logic for the resource tabs with data from the new resource_category field

This should be reviewed with https://github.com/mitodl/course-search-utils/pull/117/files which needs to be released first

Screenshots (if appropriate):

NA

How can this be tested?

Run ./manage.py recreate_index --all if you don't have resource_category in your search index

Go to http://localhost:8063/search and verify that the resource tabs work as expected
Go to http://localhost:8063/c/unit/ocw and verify that the resource tabs work as expected

Additional Context

This can already be reviewed, however it depends on mitodl/course-search-utils#117 which depends on releasing #1188 and updating axios

Also recreate_index is needs to run on prod before this can be merged so the resource_category field is updated in the search index

DO NOT MERGE UNTIL

  1. resource category #1188 is released done
  2. recreate_index is run on prod
  3. @mitodl/open-api-axios is updated done
  4. Add resource category to facets course-search-utils#117 is updated to use the params from the updated @mitodl/open-api-axios done
  5. course-search-utils is released with Add resource category to facets course-search-utils#117
  6. This pr is updated to point to the released version of course-search-utils instead of a branch
    This is ready to merge once approved

@abeglova abeglova added Blocked Needs Review An open Pull Request that is ready for review labels Jul 1, 2024
@abeglova abeglova marked this pull request as ready for review July 1, 2024 20:25
@abeglova abeglova force-pushed the ab/update-resource-tabs branch from 14782e7 to 192ced8 Compare July 1, 2024 20:51
@shanbady shanbady self-assigned this Jul 2, 2024
Copy link
Contributor

@shanbady shanbady left a comment

Choose a reason for hiding this comment

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

It seems that when i navigate from the homepage the url is referencing tabs and the correct thing isnt highlighted in results
Screenshot 2024-07-02 at 1 15 04 PM

@shanbady shanbady added Waiting on author and removed Needs Review An open Pull Request that is ready for review labels Jul 2, 2024
@abeglova abeglova removed the Blocked label Jul 2, 2024
Copy link
Contributor

@shanbady shanbady left a comment

Choose a reason for hiding this comment

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

appears to work as needed

@abeglova abeglova force-pushed the ab/update-resource-tabs branch from 0cc4e88 to 8e26351 Compare July 2, 2024 19:27
@abeglova abeglova merged commit 573d340 into main Jul 2, 2024
This was referenced Jul 8, 2024
@rhysyngsun rhysyngsun deleted the ab/update-resource-tabs branch February 7, 2025 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants