Skip to content
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

Remove a resource from an item (as a file) #516

Open
6 tasks
maxpid opened this issue Jun 4, 2021 · 2 comments
Open
6 tasks

Remove a resource from an item (as a file) #516

maxpid opened this issue Jun 4, 2021 · 2 comments
Labels

Comments

@maxpid
Copy link

maxpid commented Jun 4, 2021

Description

Allow users to remove a resource from an item.

This feature is directly linked to #142 where you can add a resource to an item.

What is the valuable outcome that cannot be achieved with current features?

For which stakeholder (people, role, project, domain) is it important?

Which user action should be enabled (or restricted)? For who?

Additional details (solutions you think about, or workarounds you tried)

Deliverables status

Phase 1

  • Scenarios (Gherkin)
  • Mockups
  • Implementation strategy

Phase 2

  • Acceptance tests (Capybara)
  • Implementation

Phase 3

  • Screencast
@antoinethz
Copy link

Voici notre stratégie d’implémentation avec @TheoHoenen :
Stratégie d’implémentation :

Dans Porphyry/src/components/itemPage il faudra modifier la fonction render de Item.jsx pour afficher un bouton « supprimer une ressource » si une ressource est présente sur l'item.

Au niveau du backend, la suppression d’un attachment de CouchDB se fera avec un DELETE de index.js du projet lib-node.

@benel
Copy link
Member

benel commented Jun 23, 2021

Merci @Antoine-thz et @TheoHoenen

Au niveau du backend, la suppression d’un attachment de CouchDB se fera avec un DELETE de index.js du projet lib-node.

Est-ce que cela ne risque pas de supprimer l'item ?

Ma remarque est analogue à mon commentaire de ce matin à vos collègues @Xelocks et @ThomasRitaine : Hypertopic/lib-node#9 (comment)
Il y a décidément quelque chose à éclaircir sur les URI des objets par rapport aux URI des pièces jointes de ces objets.

dylanbonelli added a commit to dylanbonelli/Porphyry that referenced this issue May 19, 2022
Co-authored-by: corentinprp51 <corentinprp@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants