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

Add Discovery Sitemap Endpoint #3973

Merged
merged 5 commits into from Oct 3, 2022
Merged

Add Discovery Sitemap Endpoint #3973

merged 5 commits into from Oct 3, 2022

Conversation

jowlee
Copy link
Contributor

@jowlee jowlee commented Sep 29, 2022

Description

Adds sitemap endpoints to the discovery node to generate the xml files for user/track/playlist routes
Adds endpoints:

  • /sitemap/base.xml returns the base sitemap for the static routes
  • /sitemap/<string:type>/base.xml Returns a list of links to other sitemaps for that type
  • /sitemap/<string:type>/<string:file_name> Returns a list of the urls to index

Tests

Wrote some tests with mock data and ran the discovery node against a staging DB to verify the correct links

Monitoring - How will this change be monitored? Are there sufficient logs / alerts?

Can use the google webmaster tool to check

Fixes: PLAT-343
Fixes: PLAT-322

Copy link
Contributor

@sliptype sliptype left a comment

Choose a reason for hiding this comment

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

Amazing, looks good to me!

return "https://audius.co"


def set_set_base_url():
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this name right? set_set 🤔

@jowlee jowlee merged commit e13aef3 into master Oct 3, 2022
@jowlee jowlee deleted the jowlee-sitemap branch October 3, 2022 22:17
jowlee added a commit that referenced this pull request Oct 4, 2022
* Add sitemap methods to discovery

* Fix sitemap urls and add tests

* rename route for sitemap to be more consistent

* Fix double set

* Fix integration test
@AudiusProject AudiusProject deleted a comment from linear bot Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants