Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • C caosdb-webui
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 135
    • Issues 135
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • caosdb
  • Software
  • caosdb-webui
  • Issues
  • #104
Closed
Open
Issue created Feb 26, 2021 by Henrik tom Wörden@henrikOwner

Query template needs documentation how to prepare database

Created by: Quazgar

If one uses an older (or empty?) database, editing/creating query templates fails, probably because some Entities are missing. See attached screenshot.

I am missing at least a documentation about how to enable the query template editing, for example by adding the required Entities.

Could it be that these lines from misc/query_shortcuts_test_data.py are sufficient already?

datamodel = caosdb.Container()
datamodel.extend([
    caosdb.Property("Query", datatype=caosdb.TEXT),
    caosdb.Property("templateDescription", datatype=caosdb.TEXT),
    caosdb.RecordType(
        "UserTemplate"
        ).add_property("Query", importance=caosdb.OBLIGATORY
        ).add_property("templateDescription", importance=caosdb.OBLIGATORY),
])
datamodel.insert()

Imported comments:

By Florian Spreckelsen on 2021-01-26T12:11:59.785Z

mentioned in issue #150

By Florian Spreckelsen on 2021-01-26T12:07:16.151Z

mentioned in issue #149

By Quazgar on 2020-07-07T08:11:31.374Z

The error on the Webui looks like this: Screenshot_2020-07-06_LinkAhead_1_

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking