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

feat: Add AppsRegistryCollection #1376

Merged
merged 1 commit into from
Aug 1, 2023
Merged

Conversation

Merkur39
Copy link
Member

@Merkur39 Merkur39 commented Aug 1, 2023

Using the "registry" source via the io.cozy.apps doctype is discouraged as it may skew the io.cozy.apps entry of the cozy->documents store.

For example, if we request data from the registry, the application will be present in cozy->documents->io.cozy.apps, which will falsify the return of the isInstalled() helper.

That's why we add AppsRegistryCollection, in order to separate the 2 sources in 2 different store entries cozy.documents['io.cozy.apps'] & cozy.documents['io.cozy.apps_registry']

Using the "registry" source via the `io.cozy.apps` doctype
is discouraged as it may skew the `io.cozy.apps` entry
of the `cozy->documents` store.

For example, if we request data from the registry,
the application will be present in `cozy->documents->io.cozy.apps`,
which will falsify the return of the `isInstalled()` helper.

That's why we add `AppsRegistryCollection`,
in order to separate the 2 sources in 2 different store entries
`cozy.documents['io.cozy.apps']` &
`cozy.documents['io.cozy.apps_registry']`
Copy link
Contributor

@Crash-- Crash-- left a comment

Choose a reason for hiding this comment

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

Nice ;)

@Merkur39 Merkur39 merged commit 9d010a9 into master Aug 1, 2023
4 checks passed
@Merkur39 Merkur39 deleted the feat/Add-AppsRegistryCollection branch August 1, 2023 12:13
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.

2 participants