alkem-io / cli

The command line interface for interacting with the Alkemio platform
European Union Public License 1.2
2 stars 0 forks source link

Detecting + removing orphaned credentials #32

Closed techsmyth closed 1 year ago

techsmyth commented 1 year ago

Updated script and associated graphql files for detecting and removing orphaned credentials.

Comoque1 commented 1 year ago

@techsmyth, could you please resolve the conflicts? image

Comoque1 commented 1 year ago

@techsmyth, I've triggered the script against acc env, where we have some data. The result was that there are 48 orphaned credentials for users against, hub / challenge / opportunity.

After digging deeper into the data, it appears, that the script identifies, credentials as orphaned, when the hub is demo or archived, which doesn't seem right. image image

techsmyth commented 1 year ago

@Comoque1 very important catch, this can be easily fixed.

techsmyth commented 1 year ago

@Comoque1 please try it now...I sent up a commit to also retrieve DEMO + ARCHIVE hubs

Comoque1 commented 1 year ago

Checked couple of the returned IDs for Hubs, Challenges and Opportunities (after the fix) against PROD db and such data doesn't exist anymore.