File tree Expand file tree Collapse file tree 7 files changed +15
-6
lines changed
components/users/profile/ko/runtime Expand file tree Collapse file tree 7 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 40
40
input-urls : http://localhost:12345/profile http://localhost:12345/500 http://localhost:12345/404
41
41
42
42
- name : Upload report artifact
43
- uses : actions/upload-artifact@v2
43
+ uses : actions/upload-artifact@v4
44
44
with :
45
45
name : accessibility-reports
46
46
path : ${{ github.workspace }}/_accessibility-reports
Original file line number Diff line number Diff line change 52
52
- name : Run tests
53
53
run : npx playwright test tests/ --workers 1
54
54
55
- - uses : actions/upload-artifact@v3
55
+ - uses : actions/upload-artifact@v4
56
56
if : failure()
57
57
with :
58
58
name : playwright-report
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ export class Profile {
69
69
await this . usersService . ensureSignedIn ( ) ;
70
70
71
71
const model : User = await this . usersService . getCurrentUser ( ) ;
72
- this . isBasicAccount ( model . isBasicAccount ) ;
72
+ this . isBasicAccount ( model ? .isBasicAccount ) ;
73
73
this . setUser ( model ) ;
74
74
}
75
75
Original file line number Diff line number Diff line change @@ -339,4 +339,9 @@ export const overrideToastSessionKeyPrefix = "MS_APIM_CW_override_toast_dismisse
339
339
* Styling constants
340
340
*/
341
341
export const mobileBreakpoint = 768 ;
342
- export const smallMobileBreakpoint = 400 ;
342
+ export const smallMobileBreakpoint = 400 ;
343
+
344
+ /**
345
+ * Key of the default admin user
346
+ */
347
+ export const integrationUserId = '/users/integration' ;
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export class User {
23
23
this . note = contract . properties . note ;
24
24
this . groups = contract . properties . groups ;
25
25
this . identities = contract . properties . identities ;
26
- this . isBasicAccount = this . identities [ 0 ] ?. provider === "Basic" ;
26
+ this . isBasicAccount = this . identities ?. [ 0 ] ?. provider === "Basic" ;
27
27
}
28
28
}
29
29
Original file line number Diff line number Diff line change @@ -180,6 +180,10 @@ export class ProductService {
180
180
if ( ! userId ) {
181
181
throw new Error ( `Parameter "userId" not specified.` ) ;
182
182
}
183
+
184
+ if ( userId === Constants . integrationUserId ) {
185
+ return new Page ( ) ;
186
+ }
183
187
184
188
const skip = searchRequest && searchRequest . skip || 0 ;
185
189
const take = searchRequest && searchRequest . take || Constants . defaultPageSize ;
Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ export class UsersService {
181
181
try {
182
182
const userId = await this . getCurrentUserId ( ) ;
183
183
184
- if ( ! userId ) {
184
+ if ( ! userId || userId === Constants . integrationUserId ) {
185
185
return null ;
186
186
}
187
187
You can’t perform that action at this time.
0 commit comments