Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in
haskell-gargantext
haskell-gargantext
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 159
    • Issues 159
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 9
    • Merge Requests 9
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • gargantext
  • haskell-gargantexthaskell-gargantext
  • Issues
  • #425

Closed
Open
Opened Nov 18, 2024 by Alfredo Di Napoli@AlfredoDiNapoli
  • Report abuse
  • New issue
Report abuse New issue

"Publish a Corpus" improvements

We merged !350 (merged), but there are several improvements we could make. In particular:

  • @anoe reported here that he's observing some GQL errors when publishing a corpus. I have seen those myself occasionally but not in the context of my MR, but is worth investigating and trying to reproduce;

  • At the moment when we publish a corpus, we end up with what seems to be "Two copies" -- we see the node still in the private subtree and in the public tree, which might be confusing. @anoe , perhaps we should somehow hide any published node from its source (i.e. private) subtree?

  • At the moment, the backend supports two "publishing modes": one is static and doesn't allow even the original owner to modify a published node, and the other is more dynamic. However, using the /move API we can only publish using the "static" mode, whereas it would be nice to have an API endpoint to be able to specify such NodePublishPolicy in the body of a POST request, as a JSON payload. I propose we add a /publish endpoint to do just that, so that the frontend can decide which endpoint to call in one case or the other.

  • At the moment the backend doesn't expose any information about the original NodePublishPolicy in the NodeTree we return when we call /tree and /first_level. This means that the frontend doesn't have a way to show nodes in a different way according if they are "static" or "dynamic", so we should fix that.

  • The story around Notes is unclear, because by default notes will be editable by anybody, so ideally if we publish a corpus containing a Notes children, we should somehow generate under the hood an HTML blob and have it nested under the published node, seamlessly.

Edited Nov 18, 2024 by Alfredo Di Napoli
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
0
Labels
None
Assign labels
  • View project labels
Reference: gargantext/haskell-gargantext#425