• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

SwissDataScienceCenter / renku-data-services / 15156128451
86%

Build:
DEFAULT BRANCH: main
Ran 21 May 2025 07:36AM UTC
Jobs 2
Files 355
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

21 May 2025 07:26AM UTC coverage: 87.199%. First build
15156128451

push

github

web-flow
fix: Fix entity namespace in search documents (#845)

* Fix entity namespace in search documents
* Change solr documents to carry namespace and path

This is necessary to disambiguate living inside a namespace and being
a namespace. The entity tree is build like this:

- Projects always have a namespace (are never top-level), and they may act
  as a namespace for data connectors
- Groups never have a namespace (are not nested, always top-level),
  they are a namespace for projects and data connectors
- Users never have a namespace (always top-level), they are a
  namespace for projects and data connectors
- DataConnectors *may* have a namespace (are either in a group or
  project, or top-level), they don't act as a namespace for other
  things

In order to resolve namespaces it must be reliably found in the solr
documents, which are flat. It requires a globally unique key. The data
services doesn't carry the internal unique id (ulid or uuid), but the
"path". The path to an entity is always defined and is either
its *slug* (if top-level) or consists of the path of its namespace and
its slug. For resolving namespaces the path can be used and is now
added to each document.

The namespace field is removed. The field `isNamespace` is added with
a static value of `true` to those entities that may act like a
namespace. It is not strictly required but is an extra safety net when
resolving.

* Fixing solr query translation to use the new path field

* Update flake with correct rclone and fix pg dev command

* Adopt search api spec to consistent path/slug

The `namespace` field will now always be an object to the resolved
namespace entity. The `path` field contains the full identifier and
the `slug` the last element.

* Fix decoding data connectors with project namespace

* Fix tests

64 of 67 new or added lines in 5 files covered. (95.52%)

21811 of 25013 relevant lines covered (87.2%)

1.53 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
94.34
components/renku_data_services/search/converters.py
2
96.28
components/renku_data_services/solr/entity_documents.py
Jobs
ID Job ID Ran Files Coverage
1 run-main-tests - 15156128451.1 21 May 2025 07:44AM UTC 355
86.64
GitHub Action Run
2 run-schemathesis-tests - 15156128451.2 21 May 2025 07:36AM UTC 355
66.77
GitHub Action Run
Source Files on build 15156128451
  • Tree
  • List 355
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #15156128451
  • 1bb3fac9 on github
  • Prev Build on main (#15131911124)
  • Next Build on main (#15156745112)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc