Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

moving timelines and default interact poorly #22204

Closed
dpsutton opened this issue Apr 28, 2022 · 0 comments · Fixed by #22244
Closed

moving timelines and default interact poorly #22204

dpsutton opened this issue Apr 28, 2022 · 0 comments · Fixed by #22244
Assignees
Milestone

Comments

@dpsutton
Copy link
Contributor

Create a timeline it is marked as default:

rc2=# select * from timeline;
 id |         name         | description | icon | collection_id | archived | creator_id |          created_at           |          updated_at           | default
----+----------------------+-------------+------+---------------+----------+------------+-------------------------------+-------------------------------+---------
  1 | Our analytics events | [null]      | star |        [null] | f        |          1 | 2022-04-28 12:11:54.741854-05 | 2022-04-28 12:11:54.741854-05 | t
(1 row)

Create a new collection and a timeline in that collection they are both default:

rc2=# select * from timeline;
 id |         name          | description | icon | collection_id | archived | creator_id |          created_at           |          updated_at           | default
----+-----------------------+-------------+------+---------------+----------+------------+-------------------------------+-------------------------------+---------
  1 | Our analytics events  | [null]      | star |        [null] | f        |          1 | 2022-04-28 12:11:54.741854-05 | 2022-04-28 12:11:54.741854-05 | t
  2 | sub collection events | [null]      | star |             2 | f        |          1 | 2022-04-28 12:29:26.65055-05  | 2022-04-28 12:29:26.65055-05  | t
(2 rows)

Move the first timeline into the second collection, we now have two defaults in the same collection:

rc2=# select * from timeline;
 id |         name          | description | icon | collection_id | archived | creator_id |          created_at           |          updated_at           | default
----+-----------------------+-------------+------+---------------+----------+------------+-------------------------------+-------------------------------+---------
  2 | sub collection events | [null]      | star |             2 | f        |          1 | 2022-04-28 12:29:26.65055-05  | 2022-04-28 12:29:26.65055-05  | t
  1 | Our analytics events  | [null]      | star |             2 | f        |          1 | 2022-04-28 12:11:54.741854-05 | 2022-04-28 12:29:42.470648-05 | t
(2 rows)

And the UI shows two with the same name:
image

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

Successfully merging a pull request may close this issue.

4 participants