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

WPB-663 servantify brig provider service API #3566

Merged
merged 14 commits into from
Oct 2, 2023

Conversation

battermann
Copy link
Contributor

@battermann battermann commented Sep 6, 2023

https://wearezeta.atlassian.net/browse/WPB-663

Do not merge before the mandarin release as this could potentially break QA's automation.

There has been a problem reported by QA with a previous attempt of this, and I now checked every endpoint again, making sure they are all covered by a test. However, I wasn't able to reproduce the issue that QA ran into:

https://staging-nginz-https.zinfra.io/teams/e4898f4d-160a-489c-9484-b3cd830bd84f/services/whitelist (404): {"code":404,"label":"no-endpoint","message":"The requested endpoint does not exist"} (404)

Even an integration test that call this via nginz passes. It's not the content type or accept headers, either. Also, it works both with versioned and unverified paths.

Checklist

  • Add a new entry in an appropriate subdirectory of changelog.d
  • Read and follow the PR guidelines

@battermann battermann force-pushed the WPB-663-backend-servantify-brig-provider-service-api branch from b55a7b9 to 0f4c031 Compare September 6, 2023 14:11
lepsa and others added 3 commits September 6, 2023 14:39
- Moving the routes over to servant, and removing the old routing code.
- Adding new instances to types that needed them for servant.
@battermann battermann force-pushed the WPB-663-backend-servantify-brig-provider-service-api branch from 0f4c031 to d4b2708 Compare September 6, 2023 14:42
@zebot zebot added the ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist label Sep 6, 2023
libs/wire-api/src/Wire/API/Provider.hs Outdated Show resolved Hide resolved
libs/wire-api/src/Wire/API/Provider/Service.hs Outdated Show resolved Hide resolved
libs/wire-api/src/Wire/API/Provider/Service.hs Outdated Show resolved Hide resolved
libs/wire-api/src/Wire/API/Provider/Service.hs Outdated Show resolved Hide resolved
libs/wire-api/src/Wire/API/Provider/Service.hs Outdated Show resolved Hide resolved
libs/wire-api/src/Wire/API/Provider/Service.hs Outdated Show resolved Hide resolved
libs/wire-api/src/Wire/API/Provider/Service.hs Outdated Show resolved Hide resolved
libs/wire-api/src/Wire/API/Provider/Service/Tag.hs Outdated Show resolved Hide resolved
libs/wire-api/src/Wire/API/Routes/Public/Brig.hs Outdated Show resolved Hide resolved
@@ -244,6 +244,11 @@ http {
proxy_pass http://brig;
}

location ~* /teams/([^/]+)/services {
Copy link
Contributor

Choose a reason for hiding this comment

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

it's not nice that we have so many config files that should in fact all be the same :(

deriving (S.ToSchema) via (Schema ServiceTagList)

_ServiceTagList :: Prism' ServiceTagList [ServiceTag]
_ServiceTagList = prism ServiceTagList (\(ServiceTagList l) -> pure l)
Copy link
Contributor

Choose a reason for hiding this comment

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

why is this not a lens?

libs/wire-api/src/Wire/API/Provider/Service/Tag.hs Outdated Show resolved Hide resolved
@elland elland force-pushed the WPB-663-backend-servantify-brig-provider-service-api branch from ec0c484 to 1e58052 Compare October 2, 2023 08:50
@elland elland force-pushed the WPB-663-backend-servantify-brig-provider-service-api branch from c68a8cf to 7cf13bc Compare October 2, 2023 12:17
@elland elland force-pushed the WPB-663-backend-servantify-brig-provider-service-api branch from 7cf13bc to 14afa24 Compare October 2, 2023 12:20
@elland elland merged commit 0f4623a into develop Oct 2, 2023
9 checks passed
@elland elland deleted the WPB-663-backend-servantify-brig-provider-service-api branch October 2, 2023 13:34
@echoes-hq echoes-hq bot added the echoes: technical-debt Changes intended at mitigating risks label Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
echoes: technical-debt Changes intended at mitigating risks ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants