Skip to content
This repository was archived by the owner on May 29, 2026. It is now read-only.

fix: openregister dependency, DI settings, SPDX tags, manifest cleanup (H3+L2+L3+L4+L5)#96

Merged
rubenvdlinde merged 1 commit into
developmentfrom
fix/pr-c-hygiene
May 28, 2026
Merged

fix: openregister dependency, DI settings, SPDX tags, manifest cleanup (H3+L2+L3+L4+L5)#96
rubenvdlinde merged 1 commit into
developmentfrom
fix/pr-c-hygiene

Conversation

@rubenvdlinde

Copy link
Copy Markdown
Contributor

Summary

  • H3: appinfo/info.xml now declares openregister app dependency, matching manifest.json. NC enforces this on install.
  • L2/L3: AdminSettings::getForm injects IInitialStateService and calls provideInitialState to push the app version CSP-safely. Removes the service-locator call (\OC::$server->get()) from templates/settings/admin.php.
  • L4: SPDX-FileCopyrightText and SPDX-License-Identifier added to lib/Repair/InitializeActions.php and lib/Service/ActionAuthService.php.
  • L5: Removed placeholder @SPEC tag pointing to example-change/tasks.md#task-N from Application.php docblock.
  • Manifest: removed hardcoded isUpToDate:true + showUpdateButton:false from version-info props.

Test plan

  • Admin settings page loads and version displays correctly
  • No service-locator in template
  • composer check:strict passes

…st cleanup (H3+L2+L3+L4+L5)

- H3: appinfo/info.xml now declares <app>openregister</app> dependency, matching
  manifest.json which already listed "openregister" in dependencies. Without this
  NC won't enforce the OR dependency on install.
- L2/L3: AdminSettings::getForm injects IInitialStateService and calls
  provideInitialState to push the app version to the frontend CSP-safely.
  The service-locator call (\OC::$server->get()) in templates/settings/admin.php
  is removed — state is now injected by the DI'd class instead.
- L4: Added SPDX-FileCopyrightText and SPDX-License-Identifier to
  lib/Repair/InitializeActions.php and lib/Service/ActionAuthService.php (both
  were missing these required headers).
- L5: Removed placeholder @SPEC tag pointing to example-change/tasks.md#task-N
  from Application.php docblock (was a scaffold comment, not a real spec link).
- Manifest cleanup: remove hardcoded isUpToDate:true and showUpdateButton:false
  from version-info widget props (these are dynamic values the widget should
  determine itself from injected state, not static manifest props).
@rubenvdlinde rubenvdlinde merged commit fb162d6 into development May 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant