Skip to content

[Bug] t.list doesn't list any datasets in accessible mapsets when there is no temporal connection in current mapset #7622

Closed

Description

@petrasovaa

Describe the bug

I think the recent changes broke the behavior, see t.list code:

    conn = tools.t_connect(flags="p", format="json", mapset=".")

    db_exists = conn[0]["driver"] and conn[0]["database"]
    if not db_exists:
        ...
        return

but there may be datasets in other accessible mapsets that should be listed.

Activity

  1. added
    bug
    on Jul 1, 2026
  2. added
    temporal
    on Jul 1, 2026
  3. Valyrian-Code commented on Jul 4, 2026

    @Valyrian-Code
    Contributor

    I looked into this one. The check added in #7580 asks t.connect only about the current mapset (mapset="."), so t.list returns early even when mapsets on the search path do have temporal databases. Since t.connect -p format=json already reports one entry per search path mapset, checking whether any of them has a connection fixes the listing while keeping what #7580 prevented: in a fresh project with no temporal database anywhere, t.list still does not create one.

    I reproduced both cases and opened a PR with the fix and a regression test.

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

    bugtemporal

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions