You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
quads=# select * from assignments where cloud_id = 19;
id | active | provisioned | validated | description | owner | ticket | qinq | wipe | ccuser | cloud_id | vlan_id | cre
ated_at
----+--------+-------------+-----------+-------------------------+---------+--------+------+------+--------------+----------+---------+------------
----------------
14 | t | t | t | *** Large Scale OCP LTA | dwilson | 1465 | 0 | f | \x80055d942e | 19 | | 2024-08-20
16:30:54.583593
(1 row
quads=# select * from notifications where assignment_id = 14;
id | fail | success | initial | pre_initial | pre | one_day | three_days | five_days | seven_days | assignment_id
----+------+---------+---------+-------------+-----+---------+------------+-----------+------------+---------------
14 | f | f | t | t | f | f | t | t | t | 14
(1 row)
So notification_id is 14
We can see it won't expire until 2025-01-05:
Now let's look at the database notifications table for assignment_id 14
quads=# select * from notifications where assignment_id = 14;
id | fail | success | initial | pre_initial | pre | one_day | three_days | five_days | seven_days | assignment_id
----+------+---------+---------+-------------+-----+---------+------------+-----------+------------+---------------
14 | f | f | t | t | f | f | t | t | t | 14
(1 row)
We should see one_day, three_days, five_days and seven_days notification flags being reset when it was extended to f.
We are effectively not resetting anything on extension, this means that tenants will only receive the notification they haven't ever received yet or we have no record of and once that happens they won't receive those either.
The code in the --extend method is supposed to do this but I don't see it happening in the database:
So the way that reads, it seems to make multiple calls for each of the schedules. Shouldn't there be only a single call only if the extend operation is done with the --cloud flag rather than iterating over all the schedules?
The way the code is written here: https://github.com/redhat-performance/quads/blob/latest/src/quads/cli/cli.py#L657 it should reset all the values to False but I don't see that happening looking at the database.
Let's look at a recently extended LTA assignment:
So notification_id is
14
We can see it won't expire until 2025-01-05:
Now let's look at the database notifications table for assignment_id
14
We should see
one_day
,three_days
,five_days
andseven_days
notification flags being reset when it was extended tof
.We are effectively not resetting anything on extension, this means that tenants will only receive the notification they haven't ever received yet or we have no record of and once that happens they won't receive those either.
The code in the
--extend
method is supposed to do this but I don't see it happening in the database:The text was updated successfully, but these errors were encountered: