Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • nomad-FAIR nomad-FAIR
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 215
    • Issues 215
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 27
    • Merge requests 27
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • nomad-labnomad-lab
  • nomad-FAIRnomad-FAIR
  • Merge requests
  • !922

Enable metainfo version hashes in the GUI

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged David Sikter requested to merge 1135-enable-metainfo-version-hashes-in-the-gui into develop Nov 03, 2022
  • Overview 8
  • Commits 2
  • Pipelines 8
  • Changes 11

Closes #1135 (closed). Enables the GUI to handle schema urls that have version hashes in them ("frozen schemas"). Frozen schemas are fetched using a special api endpoint, which fetches an entire frozen version of a package containing the versionHash requested. During parsing, all loaded frozen definitions are stored in a cache, indexed by the version hash, which is used when resolving references. For now, this cache just accumulates definitions, and is never cleared (as the frozen schemas should be static, the only reason we might want to clear the cache is if we want to save memory, but the schemas should hopefully not take up much memory). The reason for not clearing the cache is that we want to keep the current python schema hashes in the cache.

The merge has no real effect unless the version hash functionality is enabled in config.py.

Edited Nov 09, 2022 by David Sikter
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: 1135-enable-metainfo-version-hashes-in-the-gui