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

fix(editor): Google Admin Node Overhaul implementation #12271

Open
wants to merge 42 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
75dba9a
Add support for CrOS Devices in GSuite Admin Node
libertyunion Apr 19, 2023
df3fd33
Removed unnecessary logging strings
libertyunion Apr 19, 2023
053a4f9
Removed unnecessary print statements
libertyunion Apr 19, 2023
428f7a5
Merge remote-tracking branch 'upstream/master' into node-google-admin…
Stamsy Dec 17, 2024
3c17cbb
update group logic
Stamsy Dec 18, 2024
9ee8225
update resource locator for group description
Stamsy Dec 19, 2024
4dde15e
format description for device description
Stamsy Dec 20, 2024
d481b26
add helper functions for list users and groups
Stamsy Dec 20, 2024
cc35478
update user description logic and structure
Stamsy Dec 20, 2024
631cd2c
fix update primary email
Stamsy Dec 30, 2024
1691379
fix comments and add regex validation for email
Stamsy Jan 6, 2025
b628d9e
add placeholders for Device resource
Stamsy Jan 6, 2025
dce7291
fix resource locator
Stamsy Jan 7, 2025
227de7a
add error description
Stamsy Jan 7, 2025
b5fa50a
add unit tests
Stamsy Jan 8, 2025
9bd10c4
update tests
Stamsy Jan 10, 2025
f444a57
update device resource and add custom fields logic
Stamsy Jan 10, 2025
c727b35
fix after review
Stamsy Jan 13, 2025
6b07274
add custom fields inuser update operation
Stamsy Jan 15, 2025
acd69f3
fix searchGroups and SearchUsers tests
Stamsy Jan 15, 2025
a2ef494
separate search functions in new file
Stamsy Jan 15, 2025
7c7e974
fix custom fields
Stamsy Jan 15, 2025
9b3609f
remove unused variable
Stamsy Jan 15, 2025
21f725e
update custom fields
Stamsy Jan 16, 2025
5e804f9
Merge branch 'master' into node-google-admin-overhaul
Stamsy Jan 16, 2025
fbe7da6
format
Stamsy Jan 16, 2025
98c980f
format
Stamsy Jan 17, 2025
d5d2a57
Minor copy tweaks.
gandreini Feb 4, 2025
6bb6d49
throw an error if username filed is empty
Stamsy Feb 5, 2025
e2bbb46
Merge branch 'node-google-admin-overhaul' of https://github.com/digit…
Stamsy Feb 5, 2025
3625f4e
fix roles as multi-options component
Stamsy Feb 5, 2025
ad5f3c0
remove projection
Stamsy Feb 5, 2025
8945b57
fix field names in change status
Stamsy Feb 5, 2025
e4010fc
use a Resource Locator for device id field
Stamsy Feb 5, 2025
ecc9362
rename Projection as “Output”
Stamsy Feb 5, 2025
e9008d2
Move outside the collections Include Children and fix return all
Stamsy Feb 5, 2025
697daa2
add collection sort and filter
Stamsy Feb 5, 2025
84fd5e9
fix search device function
Stamsy Feb 11, 2025
2f88b87
add unit test for searchDevice function
Stamsy Feb 11, 2025
a58e435
get deviceId
Stamsy Feb 11, 2025
bf64534
Copy tweak.
gandreini Feb 13, 2025
a068023
Renamed Device to ChromeOS Device.
gandreini Feb 14, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix update primary email
  • Loading branch information
Stamsy committed Dec 30, 2024
commit 631cd2c4b1aadb7ad5efbff690fa4fbcab830346
Original file line number Diff line number Diff line change
@@ -600,6 +600,7 @@ export class GSuiteAdmin implements INodeType {
const body: {
name?: { givenName?: string; familyName?: string };
emails?: IDataObject[];
primaryEmail?: string;
phones?: IDataObject[];
suspended?: boolean;
roles?: { [key: string]: boolean };
@@ -625,8 +626,12 @@ export class GSuiteAdmin implements INodeType {
body.emails = emails;
}

if (updateFields.primaryEmail) {
body.primaryEmail = updateFields.primaryEmail as string;
}

if (typeof updateFields.suspendUi === 'boolean') {
body.suspended = updateFields.suspendUi; // Map directly to suspended
body.suspended = updateFields.suspendUi;
}

if (updateFields.roles) {