-
Notifications
You must be signed in to change notification settings - Fork 9
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
Updates to make project work #5
Comments
Hi, nice to see other people (trying) to leverage this tool / script :) Regarding migrateUsersIn general clubhouse does not seem to have an official API to create users (neither 1.5 years ago when I did the migration, nor now). Because I didn't want to create users manually and I wanted migrated issues be assigned the correct user (requester and owner) I came up with some hack though nevertheless. Since there is no API documentation I found out all of this just via the Chrome Debugger (i.e. inspecting network requests when adding a user through the UI). As a clubhouse admin you go to the users UI and invite a users. This creates an "Invite" (1st API call). The api call returns an "invite" with an invite id. This also creates an invite email that is being send to the potentially new user and the link in that email also contains the invite id as url parameter. Anyways - so what I'm doing is I'm using that invite here https://github.com/geekflyer/jira-to-clubhouse-node/blob/master/src/Migration.ts#L232 to turn the invite into an actual "member" via a second API call to the As for all the other API callsAt the time (1.5 years ago) when I was doing the migration clubhouse had just a V1 API which missed a lot of functionalities and a V2 Beta API which had more features and was actually also used by the UI almost everywhere. There is an official clubhouse nodejs client lib https://github.com/clubhouse/clubhouse-lib which at that time was also using the beta endpoints but actually contained a few bugs / limitations and didn't implement certain endpoints correctly itself (or contained incorrect typings) and was missing a few critical functionalities (for example maintaining labels). Another major issue with the official clubhouse lib was that I was constantly running into ratelimit issues when attempting to run the migration script and that library didn't even expose a proper way to detect and handle that specific error.
Let me know if that helps. Would appreciate if you can create an MR if you find any incompatibilities that you could fix. |
One additonal note: the teams functionality didn't exist back then. I suppose in order to create a project one nowadays always has to pass in a team_id . You might have to find out programmatically the default team id (the initial team) by using the listTeams endpoint. You can incorporate it from this patch useshortcut/shortcut-client-js@252f00e |
I've been trying to get this working as it's a pretty amazing concept. However I'm running into issues in getting this to run.
For the
migrateUsers
piece I get this error:So it looks like they want to change
emails
toinvites
, then we get:So whatever parameters need to be sent may have changed. This seems like a fixable issue though, just a case of finding out the new format that they're making the API calls. @geekflyer how did you originally inspect those requests?
Also when doing
migrateData
I get this errorIt seems there are just small API issues here that can be fixed. I'd be happy to help implement if there's appetite. Let me know @geekflyer !
The text was updated successfully, but these errors were encountered: