-
Notifications
You must be signed in to change notification settings - Fork 136
Issue 2896 fix #2959
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 2896 fix #2959
Conversation
maxceem
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for update @PrakashDurlabhji
I can see delete button now, but it doesn't work for me:
https://monosnap.com/file/nZt8beLqnXge5lNP1Vowvi3ihBKrse
Please, submit a demo video on how it works for you.
Thank you.
|
@PrakashDurlabhji just in case would like to remind about this PR as the Bug Bash challenge in review phase now, which will be finished in 1.5 days. |
|
@maxceem which api needs to be used? or updateProjectAttachement with proper payload? |
|
@PrakashDurlabhji |
|
@PrakashDurlabhji there are also some conflicts with other changes has been done during this Bug Bash, please kindly resolve them before I can accept this PR. |
|
@maxceem is edit attachement working proper already? I dont think edit attachement is working as even it uses idx, Also there is no attachementId property in filelinks object, hence will implement same logic as links delete which splices the element at idx |
it was broken and it has been fixed in another issue #2938
right, it didn't work with idx
please, get the latest commits in the I think in that issue attachementId has been added so you can reuse it in your submission. |
maxceem
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @PrakashDurlabhji
Deleting works now, but there are several issues:
-
Delete button should be shown following the same conditions when edit button is shown. But currently if I upload two file with different users I can see delete button for this file which has been uploaded by another user, but it shouldn't:
-
When we click delete button we show confirmation dialog for removing file, but the text says about removing a link:

For the files, this dialog should have text about file instead of link. While for links it should staty as it is. -
removeAttachmentfunction has an argument calledidx, but it's not an index butattachmentIdhttps://github.com/appirio-tech/connect-app/pull/2959/files#diff-1bd3d27391bef49dfabf369856ff817fR134Please, rename it accordingly.
Thank you.
|
@maxceem MR updated with all points |
maxceem
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @PrakashDurlabhji
There are few issues:
in this line https://github.com/appirio-tech/connect-app/pull/2959/files#diff-1bd3d27391bef49dfabf369856ff817fR351 laodProjectMessages is undefined - I think it happened during resolving conflicts.
After we remove a file, uploading a new file cannot be completed.
Will fix them myself. Other than that PR is good and accepted.

No description provided.