fix(marketplace): release builds ship the mock catalog and mock installs write to the real extensions folder
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 43/100
Direzione di ricerca
Start with lib/core/market/marketplace_repository.dart and inspect the mock repository, ExtensionPaths.extensionsDirectory(), and where the Extension Manager is wired at startup; the issue also points to the generated theme around line 278. Check the related install-path issues #1560 and #1562 and the Beta epic #1499 for scope. Done means release builds cannot present mock installs as real or write them into the extensions folder, and the generated theme name is fixed.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
MarketplaceRepository.instance defaults to MockMarketplaceRepository() (lib/core/market/marketplace_repository.dart:27), and HttpMarketplaceRepository is constructed nowhere in lib/ (only in tests). So the release app's Extension Manager shows and installs a hard-coded demo catalog:
- 6 fake listings (ClickHouse / Redis / MongoDB / "postgres-exporter" drivers, two themes), some tagged
official, withcdn.queryahub.comURLs and fake checksums (e3b0c442...b855is the SHA-256 of an empty string). Nothing in the UI says the catalog is a demo; the only badge is "Preview" for drivers. - Search and "download" are
Future.delayedloops that fake progress. - Install writes to the user's real extensions folder (
ExtensionPaths.extensionsDirectory()): a manifest-only directory, and for themes a generatedtheme.json. These persist across updates and show as installed extensions. - Bug in the generated theme (
:278): the template is a non-raw'''...'''string containing"\${manifest.name}".\$escapes the interpolation, so every generic mock theme is literally named${manifest.name}.
CHANGELOG lists "Planned 0.5.0 — live Marketplace download and install", so the mock is intentional, but it should not reach users this way.
Fix
- Until the live API ships: in release builds either hide the Marketplace tab (keep Install from file), or show an explicit "Demo catalog, nothing is downloaded" banner and make Install a no-op that does not touch the extensions folder.
- Choose the repository by build/config (
kDebugModeor a dart-define with the API base URL) in one place at startup; moveMockMarketplaceRepositoryand its fixtures undertest/or a dev-only file. - Fix the
\${manifest.name}escape (or generate the JSON withjsonEncode, not a template string). - Relates to #1560 / #1562 (install path) and the Beta channel epic #1499 (live marketplace may ship to Beta first).
- Lingua principale
- Dart
- Stelle
- 23
- Fork
- 1
- Merge medio
- 31m
- PR unite (30g)
- 570
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di QueryaHub/Querya-Desktop
-
enhancement ui
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
QueryaHub/Querya-Desktop#1689 ·
I maintainer di solito rispondono entro 1 giorno
-
ui(dialogs): make destructive query and DML preview dialogs adaptive and prevent table name overflowApertabug frontend
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
QueryaHub/Querya-Desktop#1642 ·
I maintainer di solito rispondono entro 1 giorno
-
bug error-handling settings
Difficoltà 1/5 1-3 ore Idoneità per principianti 78/100
QueryaHub/Querya-Desktop#1637 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
QueryaHub/Querya-Desktop#1636 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement marketplace
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
QueryaHub/Querya-Desktop#1635 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di QueryaHub/Querya-Desktop
Issue simili
-
good-first-issue P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
flutter/dart-intellij-third-party#758 ·
I maintainer di solito rispondono entro 1 giorno
-
Bug: Incorrect location coordinates on logged Sound Meter dataForse già presa @Jashan32 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
area/archive bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
DarkFlippers/qUnleashed#374 ·
I maintainer di solito rispondono entro 1 giorno
-
agent:in-progress agent:ready feature P2 · 中 区域: 悬浮窗
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
ASDW51/DanmuFloat#178 ·
I maintainer di solito rispondono entro 1 giorno
-
Missing workoutsApertaenhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
InlitX/GymMane#237 · 1 commento ·
I maintainer di solito rispondono entro 5 giorni