Skip to content

fix(config): Move Config Constants to ConfigLexicon to allow loading during occ upgrade, update all references - #19422

Open
sudormant wants to merge 1 commit into
mainfrom
fix/config/ConfigConstantsToConfigLexicon
Open

sudormant wants to merge 1 commit into
mainfrom
fix/config/ConfigConstantsToConfigLexicon

Conversation

@sudormant

Copy link
Copy Markdown
Contributor

fix(config): Move Config Constants to ConfigLexicon to allow loading during occ upgrade, update all references

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not possible
  • πŸ“˜ API documentation in docs/ has been updated or is not required
  • πŸ”– Capability is added or not needed

@sudormant sudormant added this to the β›… Next Patch (35) milestone Sep 16, 2026
@sudormant sudormant self-assigned this Sep 16, 2026
…during occ upgrade, update all references

Signed-off-by: Christian Lorang <christian.lorang@nextcloud.com>
@sudormant
sudormant force-pushed the fix/config/ConfigConstantsToConfigLexicon branch from 0cdaff0 to 855e287 Compare September 16, 2026 14:44
Comment thread lib/Config.php
Comment on lines -31 to -41
public const ALLOWED_BACKEND_TIMEOFFSET = 45;
public const SIGNALING_INTERNAL = 'internal';
public const SIGNALING_EXTERNAL = 'external';

public const EXPERIMENTAL_UPDATE_PARTICIPANTS = 1;
public const EXPERIMENTAL_RECOVER_SESSION = 2;
public const EXPERIMENTAL_CHAT_RELAY = 4;

public const SIGNALING_TICKET_V1 = 1;
public const SIGNALING_TICKET_V2 = 2;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

As said this should stay

Comment thread lib/Config.php
Comment on lines -84 to -94
/**
* 1. Call recording, …
*/
public const FEATURE_HINT = 34;

/**
* Currently limiting to 1k users because the user_status API would yield
* an error on Oracle otherwise. Clients should use a virtual scrolling
* mechanism so the data should not be a problem nowadays
*/
public const USER_STATUS_INTEGRATION_LIMIT = 1000;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Also this.
And instead we only move config names to the lexicon?

Comment thread lib/Config.php
* Minimum length of the external call service shared secret. Shorter
* secrets are not considered configured to improve security.
*/
protected const EXTERNAL_CALL_SERVICE_SECRET_MIN_LENGTH = 64;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Also keep here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants