-
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
[FR] Allow users to archive assets from Capture App #1942
Comments
➤ Tammy Yang commented: We will use archive. Basic flow:
|
➤ Ethan Wu commented: Tammy Yang i believe this might be an ionic side implementation the top bar is handled by ionic on the my profile => capture page |
➤ Kenny Hung commented: Tammy Yang(cc Sam) Just confirm this feature flow #1, currently, the menu(at the top-right corner) will display network action directly, so we will
|
➤ Sam commented: Kenny Hung, (cc: Tammy Yang) |
➤ Tammy Yang commented: Sam, no, I think we should have UX like this
|
➤ Sofia Yan commented: Sam
|
➤ Sam commented: Sofia Yan, need bit more help. When a user clicks Mint & Share there might be a potential error like
When a user clicks Network Actions there might be a potential error like
|
➤ Sam commented: Bofu Chen, I have a question. In this endpoint https://dia-backend.numbersprotocol.io/api/v3/redoc/#operation/store_products_list ( https://dia-backend.numbersprotocol.io/api/v3/redoc/#operation/store_products_list ) what is associated_id? So let's say we have an asset with id assetA. My question is productA.associated_id == assetA? |
➤ Kenny Hung commented: Sam (cc Scott Yan) |
➤ Sam commented: Kenny Hung cid means capture id, what nid means ? |
➤ Scott Yan commented: nid == cid |
➤ Ethan Wu commented: Sam |
➤ Sam commented: Ethan Wu (cc: Olga), How can I get the product id if I only have a capture id? Currently, I'm trying to disable product by product id using this Disable a product endpoint ( https://dia-backend.numbersprotocol.io/api/v3/redoc/#operation/store_products_disable ). I'm trying to get the product id by using the List all products endpoint ( https://dia-backend.numbersprotocol.io/api/v3/redoc/#operation/store_orders_confirm ) (I pass capture id as associated_id parameter).
Is there any other endpoint I don't know?😅 |
➤ Ethan Wu commented: Sam insert associated_id in for cid can you send me the cid you are trying to find the product_id for? |
➤ Sam commented: Ethan Wu, bafkreigarj2zcpx7fcqmzbafmw3ymp5zqlpcyjj3lu6wd6nt4e253f4cqe |
➤ Sam commented: Ethan Wu, sorry I gave you the wrong cid. This is cid for published capture bafybeif3cvxzclo6av7dwloazocgllclqrxdgxa5kgu3vpbnrref4vmymi |
➤ Ethan Wu commented: Sam ok yeah bc i just searched the previous and it isn't a product |
➤ Ethan Wu commented: Sam by published do you mean it has been minted as an NFT? it to listed in the marketplace in order to be disabled. |
➤ Sam commented: Ethan Wu, yes. I take a capture. I call mint on these 2 captures https://nftsearch.site/asset-profile?cid=bafybeif3cvxzclo6av7dwloazocgllclqrxdgxa5kgu3vpbnrref4vmymi ( https://nftsearch.site/asset-profile?cid=bafybeif3cvxzclo6av7dwloazocgllclqrxdgxa5kgu3vpbnrref4vmymi ) |
➤ Ethan Wu commented: Sam is it in the marketplace? did you set a price and list it to buy? |
➤ Sam commented: Ethan Wu, no 😅. I just run mint action. So running mint action does not make a product right? |
➤ Ethan Wu commented: Sam no it doesn't it just mints it as a NFT, makes it public but it doesn't get listed as a product. |
➤ Ethan Wu commented: Sam you can ask kenny for a testing account and you can test with those assets |
➤ Ethan Wu commented: Kenny Hung ^^ |
➤ Sam commented: Ethan Wu, thank you for the clarification 😀🙏 |
➤ Sam commented: Kenny Hung, can you pls dm me a testing account so I can test unpublish action? |
➤ Kenny Hung commented: Sam If you need another test account, please let me know, thanks😀 |
➤ Sam commented: Kenny Hung, I figured it out, nothing blocking me at this point. Thanks to Kenny Hung, Ethan Wu. 🙏 I can work on unpublish feature further. |
➤ Sam commented: Sofia Yan, hope these translations are not weird 😅
|
➤ Sofia Yan commented: Sam
|
➤ Sam commented: Here is the PR ( #2239 ). |
➤ Kenny Hung commented: Tammy YangSam |
➤ Tammy Yang commented: Kenny Hung since it is called "mint & share", it should do exactly the same thing as network action (and charge the same amount) |
➤ Kenny Hung commented: Sam ( cc Tammy Yang) could this one add to next tuesday release? 😣 |
➤ Sam commented: Kenny Hung, so I just need to change the text to "Mint" right? |
➤ Kenny Hung commented: Sam No, Please let this button just like network action “mint & share”.
|
➤ Sam commented: Kenny Hung, Like this? |
➤ Kenny Hung commented: yes |
➤ Sam commented: Kenny Hung, I created a separate asana card ( https://app.asana.com/0/1201016280880500/1203341838065866/f ) for clear separation. |
➤ Kenny Hung commented: SamTammy Yang (cc Scott YanSherry Chung) capture app 0.69.2 testing
|
➤ Sam commented: Kenny Hung, I was able to reproduce this issue. I use this photo ( https://i.imgur.com/3dl1C3e.png ). Steps to reproduce.
|
➤ Sam commented: Here is the PR ( #2339 ) and here is the claap explanation ( https://app.claap.io/numbers-protocol/capture-delete-issue-fix-c-O35CsUM4Uy-g_X7fb0BAynA ). |
➤ Bofu Chen commented: Sam PR 2339 seems to be a workaround that hides the "File does not exist" error on Android. What is the root cause that only Android Capture shows this error? |
➤ Sam commented: Bofu Chen, I haven't looked for the root cause. I just found that Android has some issues deleting files captured from iPhones. |
➤ Bofu Chen commented: Sam If we do not know the root cause, we can not ensure that the fix/workaround can close the issue without any side effects. Tammy Yang I think this will be a release blocker and need a suggestion from a product point of view. |
➤ Sam commented: Bofu Chen, I will look dig deeper and see if I can find the root cause. |
➤ Tammy Yang commented: Bofu ChenSam every issue that related to asset storage is critical. Therefore, here is my suggestion
What do you think? |
➤ Sam commented: Tammy Yang, "asset storage is critical" understood. A conditional pass for PR2339 sounds good. Currently, I'm investigating why this issue is happening. Along the way, I found other issues, for example. I assume regular capture app user has one device iPhone or Android. the issue for PR2339 only happens if
It's interesting because photos taken from android can be deleted from iPhone without any issues. I'm not sure if it's a framework bug or not, will investigate further. Also since the details page is iframe we no longer can view details page when we offline, therefore it make sense to save thumbnails for photo/video only and do not save actual images/videos it takes user's space. |
➤ Bofu Chen commented: Sam Thanks for sharing the new finding. To make it easier to discuss and re-cap, I suggest visualizing the issue on Miro. I made the visualization ( https://miro.com/app/board/o9J_knEiIYo=/?moveToWidget=3458764539776247320&cot=14 ) this time, and you can feel free to update it. I will accept PR2339 and create a release today. |
➤ Bofu Chen commented: Sam I added a WORKAROUND tag in the comment, for your reference https://github.com/numbersprotocol/capture-lite/pull/2339/files#diff-96d5243b3b684fadfbdf898b2f45b47872f80e79fe6300740b2c7b3f42494b3eR136 ( https://github.com/numbersprotocol/capture-lite/pull/2339/files#diff-96d5243b3b684fadfbdf898b2f45b47872f80e79fe6300740b2c7b3f42494b3eR136 ) |
➤ Sam commented: Bofu Chen, I set breakpoints and I think it's more related to the sync issue (claap ( https://app.claap.io/numbers-protocol/delete-file-issue-c-O35CsUM4Uy-4TzWWWFPo-lJ )). Will investigate further. Steps to reproduce:
|
User story:
As a Capture App user, I want to remove assets from Capture network so that I can sort of "undo" my sharing on the explorer page.
Note: We cannot remove on-chain records, so the only thing we can do is to call Asset Delete API of storage backend to remove the asset from backend db.
┆Issue is synchronized with this Asana task by Unito
┆Created By: Kenny Hung
The text was updated successfully, but these errors were encountered: