Skip to content

TRS base is empty #493

Description

@dhakehurst

Hi,
(this is a very useful project by the way, thanks)

I am adding test data using the client-toolchain,
however, the trs/base seems to be empty.

according to Copilot's analysis:

The TRS is correctly registered and resource changes are tracked via trsEventHandler.onCreated() calls in RestDelegate. However, when server starts, RestDelegate maps are empty, so TRS initializes with zero resources. Once client-toolchain populates data via POST requests, new resources ARE added to TRS correctly. The fix is to make TRS initialization lazy or ensure it re-syncs after the maps are populated.

I am still too new to the code base to be sure if this is correct, but it looks like a reasonable assesment.

What am I missing?
many thanks

Activity

  1. Jad-el-khoury commented on Jan 27, 2026

    @Jad-el-khoury
    Member

    @dhakehurst Can I suggest we take dialog on the OSLC forum https://forum.open-services.net/?

    In the meantime, here's a quick answer ...
    If you are familiar with TRS, there is a baseLog and and changeLog. In this case, the BaseLog is empty. All changes (via POST) will be handled in the ChangeLog.

  2. berezovskyi commented on Jan 28, 2026

    @berezovskyi
    Member

    An empty TRS base should be fine. I do not recall the spec requiring it. I do not believe this to be a bug. Unless you can produce some log with Jazz complaining about it? You should have some TRS feed validation tools in JTS.

    If you are trying to build your own TRS consumer (eg a tiny "LQE" prototype), you might want to try eclipse-lyo/lyo#873 . To be clear, I do not think this is your case (yet?).

  3. berezovskyi commented on Feb 5, 2026

    @berezovskyi
    Member

    Marking invalid for now but keeping it open until we get to the root cause of your TRS issues with Jazz.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions