Code Monkey home page Code Monkey logo

Comments (4)

mfriesen avatar mfriesen commented on May 24, 2024

To keep the document secondary indexing flexible my proposal would be to create an API under

POST /indices/{indexType}/{operation}

So in this case there would be a
POST /indices/folder/move
{
"source":"",
"target":""
}

This would allow other types of indexing to be created with relative ease.

from formkiq-core.

reganwolfrom avatar reganwolfrom commented on May 24, 2024

@mfriesen after deleting documents (DELETE /documents/{id}), there is a list of "folders", one for each deleted document, returning on the root folder.

Screen Shot 2022-10-25 at 12 39 26 PM

{
      "path": "Document List.xlsx",
      "folder": true,
      "tags": {
        
      }
    },
    {
      "path": "Financial Sample.xlsx",
      "folder": true,
      "tags": {
        
      }
    },

from formkiq-core.

reganwolfrom avatar reganwolfrom commented on May 24, 2024

@mfriesen when moving from a folder to root, specifying "" as the target gives a 400:
{"errors":[{"key":"target","error":"attribute is required"}]}

But when providing "/" as the target, a new folder "f#" is created in DynamoDB, and the document is moved to this folder.
Screen Shot 2022-10-27 at 4 25 02 PM

Based on other concepts of root that we are using, i.e., the absence of a folder being no folder ("") instead of a root of "/", I think the blank target should be admissible. In addition, the "/" folder should not be created if "/" is provided as a destination.

Conversely, we can use "/" to signify root, and would also avoid creating the "/" folder.

from formkiq-core.

mfriesen avatar mfriesen commented on May 24, 2024

Also need to support adding the same file multiple times to a folder

from formkiq-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.