BBC_Scripts
  1. BBC_Scripts

Migrate_groups_to_Cloud

Public
AuthorCommitMessageCommit dateIssues
Michael WalkerMichael Walker
cdc7bf4453dadding missing timer update
Michael WalkerMichael Walker
18b0cfd765badding credential rotation mechanism to auto swap credentials, if provided, when encountering API rate limiting
Michael WalkerMichael Walker
0aee959872badding additional credential inputs for bypassing API rate limiting
Michael WalkerMichael Walker
d49d127aa3dMPull request #8: Feature/multi thread bulk operationsMerge in BBCS/migrate_groups_to_cloud from feature/multi-thread_bulk_operations to master * commit 'f9fee8bda15a8b9418ac72bb228cb1b7e44ae051': adding project and repo permission settings to multi-threading adding project based scanning and group creation to multi-threading moving group membership scanning and repo scanning to multi-thread
Michael WalkerMichael Walker
f9fee8bda15adding project and repo permission settings to multi-threading
Michael WalkerMichael Walker
74dccabefabadding project based scanning and group creation to multi-threading
Michael WalkerMichael Walker
8a746e5928dmoving group membership scanning and repo scanning to multi-thread
Michael WalkerMichael Walker
ba6b55914f3convert manual csv reading to csv.DictReader to handle when usernames are wrapped in quotes and have a comma seperating first/last names
Michael WalkerMichael Walker
f1e7bb22ee2black formatted
Michael WalkerMichael Walker
8b6d0691b3dfixing type hint
Michael WalkerMichael Walker
f11283bb100fixing format with black
Michael WalkerMichael Walker
639362a2cb9adding case for checking export users
Michael WalkerMichael Walker
2e138ce2cc9removing 'privilege' input as it is no longer used by Bitbucket cloud
Michael WalkerMichael Walker
ac7c21b3360set groups to backfil members rather than filling them preemptively as this could cause a serious performance/timing issue if there are a large number of unused groups within Bitbucket server
Michael WalkerMichael Walker
a20018fe9b7forgot the exit() on too many bad attempts
Michael WalkerMichael Walker
7b73e303043added handling for requests.exceptions.ConnectionErrors for the get_api() func up to 5 allowed per endpoint without failure
Michael WalkerMichael Walker
888af0118a1changed comment to be explicit about app password requirement
Michael WalkerMichael Walker
949fbf7bdc1adding forced utf-8 encoding on csv file to address encoding errors for charmap
Michael WalkerMichael Walker
daa557b1912find/replace quotes from csv aid lookup
Michael WalkerMichael Walker
2a34e082661find/replace quotes from csv aid lookup
Michael WalkerMichael Walker
d4d6f7f4ea9fixed bug for group member json depth
Michael WalkerMichael Walker
d7a4d8110caremoved unused __eq__ block
Michael WalkerMichael Walker
d4cefdd37eaAddressed edge case where user's don't necessarily have email addresses.Only the users with an email are valid in cloud so simply skip any user without one to prevent errors
Michael WalkerMichael Walker
359a3eadd76removing mention of personal access tokens as they no longer actually can be privileged high enough to allow instance admin, causing the script to fail with a 401 at times
Michael WalkerMichael Walker
ca8dea2c288fixing bug that would occur if a user has a direct assign permission but the aid isn't found for that respective user
Michael WalkerMichael Walker
9c5adaddca6MPull request #7: adding debug logging for early eventsMerge in BBCS/migrate_groups_to_cloud from feature/expanding-early-debug-logging to master * commit '87345eac179e0d324c9d84f1290649bece629ea8': adding debug logging for early events
Michael WalkerMichael Walker
87345eac179adding debug logging for early events
Michael WalkerMichael Walker
23961ade31bMPull request #6: added same check but for global permissions level.Merge in BBCS/migrate_groups_to_cloud from bugfix/handling-non-active-groups to master * commit '52e34ffed04b3be41aa70467815f587803b9dca3': added same check but for global permissions level. Also cleaned up unused imports while I was at it
Michael WalkerMichael Walker
52e34ffed04added same check but for global permissions level.Also cleaned up unused imports while I was at it
Michael WalkerMichael Walker
c5e7e9a8c86MPull request #5: adding try/except to to skip the scenario where a group found at the project or repo level (in server) may contain a permission but isn't a group in use.Merge in BBCS/migrate_groups_to_cloud from bugfix/handling-non-active-groups to master * commit 'e60ea29e9603ede303da8b6b48601b7b0c0e9701': adding try/except to to skip the scenario where a group found at the project or repo level (in server) may contain a permission but isn't a group in use. This is sometimes seen with remote directories
Michael WalkerMichael Walker
e60ea29e960adding try/except to to skip the scenario where a group found at the project or repo level (in server) may contain a permission but isn't a group in use.This is sometimes seen with remote directories
Michael WalkerMichael Walker
b875da5f943MPull request #4: Feature/add project permissionsMerge in BBCS/migrate_groups_to_cloud from feature/add-project-permissions to master * commit 'a6f799b81f20907c8cf3865b84e3541d7576d8ff': adding timer updating readme revamped to use project permissions. Heavy overhaul of the permission flattening, added functions for new API endpoints, and broke the dataclass objects to it's own file and expanded on the objects available moved logic f...
Michael WalkerMichael Walker
a6f799b81f2adding timer
Michael WalkerMichael Walker
9370d5d9541updating readme
Michael WalkerMichael Walker
cf29f61c8acrevamped to use project permissions.Heavy overhaul of the permission flattening, added functions for new API endpoints, and broke the dataclass objects to it's own file and expanded on the objects available
Michael WalkerMichael Walker
163a15aa8a8moved logic for user check outside of main for readability | also removed stale/clunky comment
Michael WalkerMichael Walker
a5bf7d22f4amoved dataclass and helper classes/functions to their own file for organization purposes
Michael WalkerMichael Walker
ab88dbef57eupdate func name to reflect both projects and repos
Michael WalkerMichael Walker
d1ac160d915MPull request #3: Feature/users and groupsMerge in BBCS/migrate_groups_to_cloud from feature/users-and-groups to master * commit '5d04fd724491671bd13ca1d5ff5b4c89f24fb85a': (21 commits) Enabling user level permission migration if 'export-users.csv' file is present and readable fixing type hinting moved the .get_aid() out of the post_init as we don't need it to run when the user obj is first created, but rather when we're ready t...
Michael WalkerMichael Walker
5d04fd72449Enabling user level permission migration if 'export-users.csv' file is present and readable
Michael WalkerMichael Walker
5c9190f6cefMPull request #2: fixing type hintingMerge in BBCS/migrate_groups_to_cloud from bugfix/type-fixing to feature/users-and-groups * commit '67816e42e3b0691f0c8c3e5d4c0d96e3f9313bf4': fixing type hinting
Michael WalkerMichael Walker
67816e42e3bfixing type hinting
Michael WalkerMichael Walker
6ba14161bcdmoved the .get_aid() out of the post_init as we don't need it to run when the user obj is first created, but rather when we're ready to use the aid, if at all | also updated the logic to update self.aid rather than return anything
Michael WalkerMichael Walker
d843c59f27eun-indented logger line and return to ensure that the for loop completes before the 'else' condition of returning None takes place (my bad)
Michael WalkerMichael Walker
846835baadbupdated logging to reflect user and group rather than just group | removed unnecessary variable input for mirror_repo_permissions
Michael WalkerMichael Walker
7b7ae20471bmodified max_user_permission to leverage Permission enum | updated mirror_repo_user_permission to now utilize the 'name' of the enum rather than the enum obj itself
Michael WalkerMichael Walker
04fc8aa1e32add wildcard ignore for log and csv file types
Michael WalkerMichael Walker
d1d95c654f4Adding enum for permission type to allow comparrison
Michael WalkerMichael Walker
30a6efa1863broke mirror function into logical group and user sub functions and added permission flattening for user level | Incomplete until a mechanism for comparing user permission, to find greatest permission level, is added
Michael WalkerMichael Walker
63a0c9d9234adding csv input reader for mapping a email address to an AID as necessary for adding a user to a repo via the cloud API