You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Remove references to non-existent note
Note [ephemeral user sideeffect] was removed in commit:
b0934a3WPB-15801 GET and DELETE Registered Domains (#4438)
* Make the `Wire.API.Team.Member.userId` lens more general
* Minor refactor
- make `!!!` definition easier to understand
- extract `getProfile`
* Add `searchable` field to data types
* Add Elastic Search boolean field type
* Add `POST /users/:uid/searchable`
* Add Elastic Search indexing
* Filter by searchable in Elastic Search
* Filter by `searchable` in exact handle search
* Test searchable field and contact search
* Use common CQL splice for team member queries
* Test /team/:tid/members?searchable=false
* Add query param to Brig
* Update services/brig/src/Brig/Provider/API.hs
Co-authored-by: Akshay Mankar <[email protected]>
* Update libs/wire-subsystems/src/Wire/UserSubsystem/Interpreter.hs
Co-authored-by: Akshay Mankar <[email protected]>
* Move test from brig to integration package
* Partially revert "Minor refactor": inline getProfile back again
This reverts commit 68b6c6e.
* Minor refactor: use record syntax, deduplicate golden tests
* Update libs/wire-api/src/Wire/API/Routes/Public/Brig.hs
Co-authored-by: Leif Battermann <[email protected]>
* Create all test users' presence in /teams/:tid/search
* Add changelog entry
* Wrap searchable POST body to JSON object
* fix templates
* Add seacrhable to golden tests
* Implement searchable flag to MockInterpreters
* second attempt at correct /team/:tid/search
* Add test to check that legacy users are found
---------
Co-authored-by: Akshay Mankar <[email protected]>
Co-authored-by: Leif Battermann <[email protected]>
:>Description"The 'ids' and 'handles' parameters are mutually exclusive."
234
-
:>ZUser
235
-
:>"users"
236
-
:>QueryParam' [Optional, Strict, Description"User IDs of users to fetch"] "ids" (CommaSeparatedListUserId)
237
-
:>QueryParam' [Optional, Strict, Description"Handles of users to fetch, min 1 and max 4 (the check for handles is rather expensive)"] "handles" (Range14 (CommaSeparatedListHandle))
238
-
:>Get '[JSON] [UserProfile]
239
-
)
224
+
:<|>Named
225
+
"list-users-by-unqualified-ids-or-handles"
226
+
( Summary"List users (deprecated)"
227
+
:>Until 'V2
228
+
:>Description"The 'ids' and 'handles' parameters are mutually exclusive."
229
+
:>ZUser
230
+
:>"users"
231
+
:>QueryParam' [Optional, Strict, Description"User IDs of users to fetch"] "ids" (CommaSeparatedListUserId)
232
+
:>QueryParam' [Optional, Strict, Description"Handles of users to fetch, min 1 and max 4 (the check for handles is rather expensive)"] "handles" (Range14 (CommaSeparatedListHandle))
233
+
:>Get '[JSON] [UserProfile]
234
+
)
240
235
:<|>Named
241
236
"list-users-by-ids-or-handles"
242
237
( Summary"List users"
@@ -247,18 +242,16 @@ type UserAPI =
247
242
:>ReqBody '[JSON] ListUsersQuery
248
243
:>Post '[JSON] ListUsersById
249
244
)
250
-
:<|>
251
-
-- See Note [ephemeral user sideeffect]
252
-
Named
253
-
"list-users-by-ids-or-handles@V3"
254
-
( Summary"List users"
255
-
:>Description"The 'qualified_ids' and 'qualified_handles' parameters are mutually exclusive."
256
-
:>ZUser
257
-
:>Until 'V4
258
-
:>"list-users"
259
-
:>ReqBody '[JSON] ListUsersQuery
260
-
:>Post '[JSON] [UserProfile]
261
-
)
245
+
:<|>Named
246
+
"list-users-by-ids-or-handles@V3"
247
+
( Summary"List users"
248
+
:>Description"The 'qualified_ids' and 'qualified_handles' parameters are mutually exclusive."
249
+
:>ZUser
250
+
:>Until 'V4
251
+
:>"list-users"
252
+
:>ReqBody '[JSON] ListUsersQuery
253
+
:>Post '[JSON] [UserProfile]
254
+
)
262
255
:<|>Named
263
256
"send-verification-code"
264
257
( Summary"Send a verification code to a given email address."
@@ -294,6 +287,17 @@ type UserAPI =
294
287
'[JSON]
295
288
(Respond200"Protocols supported by the user" (SetBaseProtocolTag))
296
289
)
290
+
:<|>Named
291
+
"set-user-searchable"
292
+
( Summary"Set user's visibility in search"
293
+
:>From 'V12
294
+
:>ZLocalUser
295
+
:>"users"
296
+
:>CaptureUserId"uid"
297
+
:>"searchable"
298
+
:>ReqBody '[JSON] SetSearchable
299
+
:>Post '[JSON] ()
300
+
)
297
301
298
302
typeLastSeenNameDesc=Description"`name` of the last seen user group, used to get the next page when sorting by name."
299
303
@@ -1736,6 +1740,13 @@ type SearchAPI =
1736
1740
]
1737
1741
"email"
1738
1742
EmailVerificationFilter
1743
+
:>QueryParam'
1744
+
[ Optional,
1745
+
Strict,
1746
+
Description"Optional, return only non-searchable members when false."
0 commit comments