Skip to content

chore: deprecate /v2 public api #373

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

Merged
merged 9 commits into from
May 29, 2025
Merged

Conversation

mc-jones
Copy link
Contributor

@mc-jones mc-jones commented May 15, 2025

This PR officially announces the deprecation of public access to our /v2 endpoint as well as our plans for eventual retirement.

TODO:

  • Announce to dev list
  • Clean up tests

Thanks to everyone who participated in the mob session to get this done. I don't want to flood everyones inbox with co-authored @ mentions 😂

Demo

Updated copy banner:
Screenshot 2025-05-16 at 8 26 27 AM

Screen.Recording.2025-05-15.at.2.36.46.PM.mov

@mc-jones mc-jones self-assigned this May 15, 2025
@mc-jones mc-jones changed the title chore: depcrecate /v2 public api chore: deprecate /v2 public api May 15, 2025
@mc-jones mc-jones force-pushed the mc-jones/deprecate-public-v2 branch from 2b3d95a to e334976 Compare May 15, 2025 18:39
@mc-jones mc-jones force-pushed the mc-jones/deprecate-public-v2 branch from e334976 to e4bc389 Compare May 15, 2025 18:39
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR deprecates public access to the /v2 API endpoint by removing /v2-specific pages and controllers, updating navigation alerts, and revising documentation to provide a clear retirement notice.

  • Removed the /v2 start view and its controller
  • Updated the navigation bar to display a deprecation warning for the public API
  • Revised documentation and client application views to reflect the impending retirement of the /v2 endpoint

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
app/views/welcome/index.html.haml Removed /v2 call-to-action and mailing list sign-up related to the deprecated API
app/views/v2/start/show.html.haml Completely removed the /v2 start view
app/views/shared/_nav.html.haml Removed the "My Apps" menu item and added an alert indicating public API deprecation
app/views/help/show.html.haml Removed outdated mailing list references
app/views/content/v2/index.md Removed the link to the deprecated /v2 start page
app/views/client_applications/index.html.haml Replaced the app creation prompt with a "No apps found" alert
app/controllers/v2/start_controller.rb Removed the deprecated V2 start controller
README.md Added a section announcing the Public API Retirement Notice
Comments suppressed due to low confidence (1)

app/controllers/v2/start_controller.rb:1

  • Since the entire V2 start controller has been removed, please ensure that any routing configuration (typically defined in config/routes.rb) is updated accordingly to prevent requests from reaching non-existent endpoints.
module V2

@mc-jones mc-jones requested a review from ansor4 May 15, 2025 18:56
If you're interested in integrating your service with Artsy's partner api, please reach out to ....
%br/
%p
If you're an Artsy partner gallery, reach out to your Artsy Liaison or contact our Support team for assistance.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

To avoid situations like what was brought to us from B2B.

Copy link
Contributor

Choose a reason for hiding this comment

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

Love it

@@ -12,3 +12,19 @@
-else
= menu_item "Sign In", '/auth/artsy/new'
= bootstrap_flash

- unless request.path.include?('/v1')
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Don't alert if we're looking at a /v1 path.

@mc-jones
Copy link
Contributor Author

Might be worth writing a very quick blog post about why we're doing this, which can be included in the email blast to the group list.

README.md Outdated
### Public API Retirement Notice
Please note, we are in the process of retiring the [public api.](developers.artsy.net/v2).

The public api, as well as its documentation and playground, will remain available until **June 30th, 2025.**
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Somewhat arbitrary date, but arguably gives enough time to us and those who will receive a notice about its retirement.

@mc-jones mc-jones marked this pull request as ready for review May 15, 2025 20:01
@narikazu
Copy link
Member

narikazu commented May 19, 2025

I believe we can remove /v2/start route from routes.rb as well

get "/v2/start", to: "v2/start#show"

@mc-jones mc-jones requested a review from narikazu May 20, 2025 12:40

- **Production:** [developers.artsy.net](https://developers.artsy.net)
- **Staging:** [developers-staging.artsy.net/](https://developers-staging.artsy.net/)

---
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice! all looks fine, I think there is one more entry point to create apps from the client application index page:

Screen.Recording.2025-05-28.at.1.49.58.PM.mov

Let me try and find the files!! I'll push up a commit, please hold

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok addressed the above in this commit here

This will:

  • Remove this button from client app index page
  • Removes the create/new forms
  • Removes create/new controller actions
  • Removes :new for client_applications namespace from routes.rb so people cant just write developers.artsy.net/new in the URL directly

… new app button from Client App flow, removes support for :new action in routes
@jpotts244 jpotts244 merged commit af1dc08 into main May 29, 2025
2 checks passed
@jpotts244 jpotts244 deleted the mc-jones/deprecate-public-v2 branch May 29, 2025 18:50
@artsy-peril artsy-peril bot mentioned this pull request May 29, 2025
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.

4 participants