Pinning System Improvements #19

Closed
opened 2024-03-23 14:29:50 +00:00 by pcfreak30 · 4 comments
Owner

The following needs to be worked on:

  • Pinning form should be a text area
  • Since it will bulk process it should
    • Lock out from exiting (no foreground exit, no x)
    • Show processing X / Y
    • Give notifications on every pin that failed, and process them. Unclear if we should do that in parallel?
  • We should not be able to undo an in-progress pinning. There is no way to undo it.
  • Completed items should have a unpin/undo.
  • A completed pin should refresh the file table.

Many small cids can be tested from here:

https://cid.one/#z5TTvXtbkQk9PTUN8r5oNSz5Trmf1NjJwkVoNvfawGKDtPCB

Small files will take seconds to pin, only the large files will really have a progress bar.

Errors returned from S5Client are refine compatible (HttpError).

The following needs to be worked on: * Pinning form should be a text area * Since it will bulk process it should * Lock out from exiting (no foreground exit, no x) * Show processing X / Y * Give notifications on every pin that failed, and process them. Unclear if we should do that in parallel? * We should not be able to undo an in-progress pinning. There is no way to undo it. * Completed items should have a unpin/undo. * A completed pin should refresh the file table. Many small cids can be tested from here: https://cid.one/#z5TTvXtbkQk9PTUN8r5oNSz5Trmf1NjJwkVoNvfawGKDtPCB Small files will take seconds to pin, only the large files will really have a progress bar. Errors returned from S5Client are refine compatible (`HttpError`).
pcfreak30 added this to the Q1 milestone 2024-03-23 14:29:50 +00:00
pcfreak30 added the
ui
label 2024-03-23 14:29:50 +00:00
ditorodev was assigned by pcfreak30 2024-03-23 14:29:50 +00:00
pcfreak30 added this to the Portal project 2024-03-23 14:29:50 +00:00
Collaborator

Need to reliably be able to pin currently for me on localhost the request is hanging (pending)

image

Need to reliably be able to pin currently for me on localhost the request is hanging (pending) ![image](/attachments/89de83df-3a4e-4b60-b222-adc4e0a4cd12)
575 KiB
Collaborator

Ok this worked once but i see the error you mentioned, the issues is that we are expecting a response from the pin endpoint. The thing is that when that response arrives the file is already pinned so no need for the pinning UI

Ok this worked once but i see the error you mentioned, the issues is that we are expecting a response from the `pin` endpoint. The thing is that when that response arrives the file is already pinned so no need for the pinning UI
Author
Owner

Ok this worked once but i see the error you mentioned, the issues is that we are expecting a response from the pin endpoint. The thing is that when that response arrives the file is already pinned so no need for the pinning UI

Small files get pinned near instantly. The hang is it searching the network for the file then queing it.

Realistically need to test anything over 100 MB. One thing you could do is optimistically assume the pin is successful for UI purposes and run monitor the pin result in a deferred async() IFFE. That way you get the UI and can just revert it, or throw it in an error tab?

> Ok this worked once but i see the error you mentioned, the issues is that we are expecting a response from the `pin` endpoint. The thing is that when that response arrives the file is already pinned so no need for the pinning UI Small files get pinned near instantly. The hang is it searching the network for the file then queing it. Realistically need to test anything over 100 MB. One thing you could do is optimistically assume the pin is successful for UI purposes and run monitor the pin result in a deferred async() IFFE. That way you get the UI and can just revert it, or throw it in an error tab?
Collaborator

done

done
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: LumeWeb/portal-dashboard#19
No description provided.