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

Parsing is limited and won't scale long term #6

Open
remyrd opened this issue Jun 21, 2019 · 0 comments
Open

Parsing is limited and won't scale long term #6

remyrd opened this issue Jun 21, 2019 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested

Comments

@remyrd
Copy link
Owner

remyrd commented Jun 21, 2019

The parsing mechanism has room for improvement.
This refers to the way the application converts items it displays (to the user) into dictionaries analogous to what's found in the databases, and vice-versa.

This is achieved by so-called mappings, which take a parameters in strings such as "{username} likes chocolate" and map them to the path within any database item. This is represented by a dot-separated string, eg. name.login.username, which in turn means the field username can be found by following the path:

{
  "name": {
    "login": {
      "username": "Bob"
    }
  }
}

This is useful for searching and to keep data structured.
Sadly, it is limited by its expressiveness. For instance, I haven't worked out how to map lists, nor investigated if there are other tools out there for this purpose.

@remyrd remyrd added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed question Further information is requested and removed good first issue Good for newcomers labels Jun 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant