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

[test-only][full-ci] Api tests. get notification on different languages #6254

Merged
merged 6 commits into from
May 17, 2023

Conversation

ScharfViktor
Copy link
Contributor

  • set and get languages setting
  • get notification on different languages

@update-docs
Copy link

update-docs bot commented May 8, 2023

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@ownclouders
Copy link
Contributor

ownclouders commented May 9, 2023

💥 Acceptance test wopiValidatorTests-ocis failed. Further test are cancelled...

Copy link
Member

@individual-it individual-it left a comment

Choose a reason for hiding this comment

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

do we need the changes in deployments/examples/ocis_traefik/docker-compose.yml ?

tests/acceptance/features/apiSpaces/notification.feature Outdated Show resolved Hide resolved
@ScharfViktor
Copy link
Contributor Author

do we need the changes in deployments/examples/ocis_traefik/docker-compose.yml ?

no, accidentally commited

"properties": {
"id": {
"type": "string",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}\\$[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}![a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
Copy link
Member

Choose a reason for hiding this comment

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

may be we can make a function and name what type of regex pattern is ths and substitute. may be we can use such pattern in other place as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's space id like 3db75261-afa8-4224-9c10-f8459fd047d7$1eb6a3e9-5dba-4887-b1b2-0c26d73d4e83!1eb6a3e9-5dba-4887-b1b2-0c26d73d4e83

We have pattern for checking spaceID but my spaceUUID contains ! . self::getUUIDv4Regex() -> maybe it is bug(because objectId is normal spaceId).

Screenshot 2023-05-16 at 21 57 37
public static function getSpaceIdRegex(): string {
		return self::getUUIDv4Regex() . '\\\$' . self::getUUIDv4Regex();

Otherwise I have to add something like:

public static function getFullSpaceIdRegex(): string {
		return self::getUUIDv4Regex() . '\\\$' . self::getUUIDv4Regex(). '\\\!' . self::getUUIDv4Regex();

tests/acceptance/features/bootstrap/SettingsContext.php Outdated Show resolved Hide resolved
tests/acceptance/features/bootstrap/SettingsContext.php Outdated Show resolved Hide resolved
@amrita-shrestha amrita-shrestha changed the title [test-only] Api tests. get notification on different languages [test-only][full-ci] Api tests. get notification on different languages May 17, 2023
@ScharfViktor ScharfViktor merged commit 36d7e77 into master May 17, 2023
@delete-merged-branch delete-merged-branch bot deleted the languageSwitchTest branch May 17, 2023 08:00
ownclouders pushed a commit that referenced this pull request May 17, 2023
…es (#6254)

* get notification on different languages

* set default english if no configured

* fix

* fix after review

* fix after rebase

* after review
fschade pushed a commit that referenced this pull request Jul 10, 2023
…es (#6254)

* get notification on different languages

* set default english if no configured

* fix

* fix after review

* fix after rebase

* after review
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.

5 participants