Closed caseybea closed 2 years ago
@caseybea could you please test the change above?
Yes will test the new code immediately.
Whoops! So, unfortunately the patch/fix did not work; and in fact ended up leaving everyone that didn't have admin rights with the admin rights.... so now when the export/import fiished, instead of adding admin rights back to a small number of people, I had to go in and REMOVE admin rights from a much larger population :-(
Resetting user privileges..
[ERROR] Could not reset priviledges:
An error occurred while reverting the admin status of Gitlab users. IMPORTANT: The following users should be revoked the admin status manually: [ "moium", "kawoods", "llamers", "dabell", "bskrade", "kthorat", "mastake", "wjin", "motutaj", "kosinski", "rswanson", "mtutaj", "jthota", "wdemos", "kormoua" ]
[root@butler jira2gitlab-main]#
ouch, sorry about that. Perhaps I did something wrong with the last commit. Checking.
I reverted the last commit. I think it should work now. Sorry but I don't have a test environment up, at the moment.
To test this, you can interrupt the script after a few minutes and check if it behaved correctly regarding the users.
OK will try.
Nope. totally new error. (we're ok here, I am willing to help keep trying!). Note I am wiping out my issues and starting with a blank project every time and also nuking the pickle file.
[INFO] #1/2304 Migrating Jira issue ITS-1 ... Traceback (most recent call last):
File "./jira2gitlab.py", line 886, in
Migration failed
Resetting user privileges..
Of course. I hope it's fixed now.
Sorry for the delay- boss had me on something else for a bit.
Confirmed- the final fix did the trick! Thank you.
The script as written (when allowed to) temporarily grants admin rights to users so that timestamps can be set properly. Clearly needed, and a cool way to handle this.
Unfortunately, the script does not check for what rights the user HAD prior to the import. If a user had admin rights beforehand, that user is incorrectly reset to non--admin when the script finishes.