Repository navigation
Remove Database Hub UI, keep only disconnect for connected apps - #843
Merged
Merged
Conversation
The Hub is discontinued. Remove what only served it: - Publish/unpublish page (B4aHubPublishPage), already unrouted, and ParseApp.publishOnHub/unpublishFromHub, which called the Hub app's cloud functions with its keys hardcoded. - ParseApp.fetchHubConnections: the back4app API no longer serves /hub/connections. - "Go to database hub" CTA on the empty apps list and the public dataset link in the create class dialog. Apps connected before the shutdown can still remove their connections: the Connections page now lists the namespaces from the dashboard config (custom.hubConnections, sent to the owner only) and calls POST /hub/disconnect. The "More" section and the page only exist when the app has a connection; /connections redirects to the browser otherwise. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contexto
O Database Hub foi descontinuado. No back4app, o PR back4app/back4app#1265 remove as rotas
/hub/*e deixa sóPOST /hub/disconnect. Este PR faz a mesma limpeza no dashboard.O que sai
B4aHubPublishPage), que já estava sem rota, eParseApp.publishOnHub/unpublishFromHub. Eles chamavam cloud functions do app do Hub com as keys fixas no código.ParseApp.fetchHubConnections, porque a API não serve mais/hub/connections.O que fica
Os apps que já estavam conectados continuam lendo os bancos públicos e podem remover as conexões:
custom.hubConnectionsnaparse-dashboard-config.json. O back4app só manda esse campo para o dono do app e nunca inclui a URI.POST /hub/disconnect. Depois, a página recarrega a config e some quando não sobra nenhuma conexão./connectionssem ter conexão é redirecionado para o browser.Deploy
Tem que subir junto com back4app/back4app#1265, porque é ele que manda
custom.hubConnections. Se só este PR subir, a página fica escondida para todo mundo, mas nada quebra.Testes
eslintnos arquivos alterados não acusa nenhum erro novo em relação aoproduction2.node_moduleslocal (@monaco-editor/react,@back4app2/sdk).🤖 Generated with Claude Code