-
Notifications
You must be signed in to change notification settings - Fork 7
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
[issue] Delete account should work real #2275
Comments
➤ Sam commented: Kenny Hung, currently when use click "Close account" Capture app sends request to https://node.numbersprotocol.io/api/1.1/wf/delete_user. Olga do we really have delete account API implemented? So far these are User ( https://dia-backend-dev.numbersprotocol.io/api/v3/redoc/#operation/auth_users_me_partial_update ) APIs (Retrieve, Update User etc) but there is no Delete User API endpoint. |
➤ Olga commented: Sam no, the API is not implemented. As far as I know, the current way is that QA call admin API of storage backend to remove accounts. Maybe because of historical unknown reason, we didn't allow user to remove himself/herself account. |
➤ Kenny Hung commented: Tammy Yang for all teem sync discuss ( https://dt42-numbers.slack.com/archives/C43K663U0/p1667798185405159?thread_ts=1667797105.467659&cid=C43K663U0 ), this task should be close? |
➤ Sam commented: Kenny Hung, as mentioned ( https://dt42-numbers.slack.com/archives/C43K663U0/p1667798185405159?thread_ts=1667797105.467659&cid=C43K663U0 ) by Tammy Yang, no need to close this task just move to next sprint (because we need backend implementation first). I'm removing this task from v221108 dependency. |
➤ Kenny Hung commented: Comment by @tammy Yang on Create API to delete user without admin authorization ( https://app.asana.com/0/0/1203454417417076/1203850872719326/f ) |
➤ Sam commented: Tammy Yang, (cc: Bofu Chen) Suggestion on environment vars naming for https://eomdb7ocy1jltk1.m.pipedream.net ( https://eomdb7ocy1jltk1.m.pipedream.net ) ========== My .zshrc file ==========export NUMBERS_STORAGE_BASE_URL=******* does prefixing with CAPTURE_APP tells you it's capture app specific? |
➤ Sam commented: Scott Yan, can you please share Postman request on how you delete a user. |
➤ Scott Yan commented: Sam |
➤ Sam commented: Tammy Yang, https://docs.captureapp.xyz/about-capture/capture-account-and-wallet/create-and-manage-account#delete-account ( https://docs.captureapp.xyz/about-capture/capture-account-and-wallet/create-and-manage-account#delete-account ) returns HTML as a response? In angular app I expect to receive JSON response otherwise it's giving me error. |
➤ Kenny Hung commented: Sam Just confirm, |
➤ Sam commented: Kenny Hung, when you delete account I call this url https://eomdb7ocy1jltk1.m.pipedream.net to delete account. |
➤ Kenny Hung commented: Sam (cc Tammy Yang) Could you try it? |
➤ Sam commented: Kenny Hung, sure I will try. Can you please share how you check if user was deleted or not. Do you call specific API endpoint? |
➤ Sam commented: Kenny Hung,
To fix this issue I need to re-publish firebase app with https://eoqnui40j5hnf0l.m.pipedream.net url |
➤ Kenny Hung commented: Sam (cc Tammy YangBofu Chen) I try the delete account function. But it can’t work. I have opened the internet connection. I have tried the endpoint it could work. Maybe app uses the wrong endpoint? I use this one. https://eoqnui40j5hnf0l.m.pipedream.net ( https://eoqnui40j5hnf0l.m.pipedream.net/ ) On firebase release it could work. https://app.asana.com/app/asana/-/get_asset?asset_id=1204352745933613 ( https://app.asana.com/app/asana/-/get_asset?asset_id=1204352745933613 ) |
➤ Kenny Hung commented: From Sam reply. Because TestFlight/Playstore are built by github ci we need to make sure Environment variable used for delete endpoint is correct. To check that we need privileges like Tammy Yang or Bofu Chen to check Github env var. |
➤ Bofu Chen commented: SamKenny Hung Please collaborate with Olga first. If this issue still cannot be fixed, let me know what's the root cause. |
➤ Sam commented: Bofu Chen This issue happened on TestFlight/Play Store build 0.77.0 (which are build by pre-release.yml ( https://github.com/numbersprotocol/capture-lite/blob/master/.github/workflows/pre-release.yml )) capture app uses env variable PIPEDREAM_URL to delete account. (
And I checked pre-release.yml ( https://github.com/numbersprotocol/capture-lite/blob/master/.github/workflows/pre-release.yml ) does not contain PIPEDREAM_URL. I think we can do hotfix as a separate asana card [issue] github CI add missing PIPEDREAM_URL to pre-release.yml & build-apks.yml ( https://app.asana.com/0/0/1204353680127605 ) |
➤ Sam commented: Kenny Hung, (cc: Bofu Chen): I think root cause is found and I think it's better to use [issue] github CI add missing PIPEDREAM_URL to pre-release.yml & build-apks.yml ( https://app.asana.com/0/0/1204353680127605 ) asana card because issue is related to GitHub CI config files. |
➤ Kenny Hung commented: Sam (cc Tammy YangBofu Chen) Just confirm, so it could be fixed today? or Need to push next Monday? |
➤ Tammy Yang commented: Sam I don't understand why this didn't happen during the previous test |
➤ Tammy Yang commented: Also, there was no task for me to create any file or variable (at least I didn't see them yet). Just trying to understand what's missing so that we can not only fix it but also can avoid it from happening again (every time this happens it delays the testing significantly) |
➤ Sam commented: Tammy Yang, yes thats interesting to me too. reason it worked on firebase releases is because I have all env vars when I build the app. but I'm not sure why it wasn't catched on TestFlight/PlayStore builds because pre-release.yml ( https://github.com/numbersprotocol/capture-lite/blob/master/.github/workflows/pre-release.yml ) does not contain PIPEDREAM_URL at all. |
➤ Bofu Chen commented: Sam I've added Please use PIPEDREAM_DELETE_CAPTURE_ACCOUNT instead of |
➤ Sam commented: Bofu Chen hotfix PR ( #2700 ) is ready. Please have a look. |
➤ Sam commented: Kenny Hung, do you want me to re-release hotfix under 0.77.1? |
➤ Bofu Chen commented: Sam PR 2700 has been merged into the |
➤ Kenny Hung commented: Sam I think yes, unless this fixed doesn't need have a new version. |
➤ Sam commented: Kenny Hung okay I will prepare PR to re-release 0.77.1 which should be exact copy of 0.77.0 + delete function should work. |
➤ Kenny Hung commented: Okay, please re-release ASAP, thanks. |
➤ Sam commented: Bofu Chen, hotfix-release-0.77.1 ( https://github.com/numbersprotocol/capture-lite/tree/hotfix-release-0.77.1 ) can you please have a look. |
➤ Sam commented: Bofu Chen, here is the pr for Hotfix release 0.77.1 ( #2701 ) please have a look 🙏 |
➤ Bofu Chen commented: Sam PR 2701 has been merged into the main branch |
Delete Button should work real instead of need QA use api to operate.
User story
As a capture user, I want the delete button could work real, so that I didn't wait for capture service team to do that.
┆Issue is synchronized with this Asana task by Unito
┆Created By: Kenny Hung
┆Link To Task: https://app.asana.com/0/1201016280880500/1203292734517496
The text was updated successfully, but these errors were encountered: