Skip to content

Commit 6e2108e

Browse files
mandres2015scastillo-jpdsgarcia8
authored
fix: TT-393 userid convert to list (#339)
* feat: TT-365 Method POST activity and create function serverless * fix: TT-393 change user id variable to list * TT-393 added list to userid * TT-393 added list to userid * TT-393 resolve comment Co-authored-by: Sandro Castillo <[email protected]> Co-authored-by: Daniela Garcia <[email protected]>
1 parent 9be546f commit 6e2108e

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

package-lock.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/utils/azure_users_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def test_get_groups_and_users(get_mock):
141141
get_mock.return_value = response_mock
142142

143143
expected_result = [
144-
('test-group-1', ['user-id1', 'user-id2', MSConfig.USERID]),
144+
('test-group-1', ['user-id1', 'user-id2', *MSConfig.USERID.split(",")]),
145145
('test-group-2', ['user-id3', 'user-id1']),
146146
('test-group-3', []),
147147
]

time-tracker.sh

100644100755
File mode changed.

utils/azure_users.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,8 @@ def get_groups_and_users(self):
263263
[member['objectId'] for member in item['members']],
264264
)
265265
result = list(map(parse_item, response.json()['value']))
266-
result[0][1].append(self.config.USERID)
266+
users_id = self.config.USERID.split(",")
267+
result[0][1].extend(users_id)
267268

268269
return result
269270

0 commit comments

Comments
 (0)