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
But it doesn't test this case since the minimal organization is created at linux epoch.
The text was updated successfully, but these errors were encountered:
FirelightFlagboy
changed the title
Server stats at a date when the organization doesn't exist yet
[Bug] Server stats at a date when the organization doesn't exist yet
Jan 29, 2025
It's unclear from the code base whether those stats should be absent from the response or should be all set to zero.
The memory implementation sets all the stats to zero without considering the organization
created_on
date:parsec-cloud/server/parsec/components/memory/organization.py
Line 259 in abce6ef
The postgresql implementation returns an error if the organization did not exist at that time:
parsec-cloud/server/parsec/components/postgresql/organization_stats.py
Lines 94 to 96 in abce6ef
However this exception is not properly handled in
organization_server_stats
which causes aTypeError
:parsec-cloud/server/parsec/components/postgresql/organization_stats.py
Line 165 in abce6ef
There is a
test_server_stats_at
test:parsec-cloud/server/tests/administration/test_stats.py
Line 301 in abce6ef
But it doesn't test this case since the minimal organization is created at linux epoch.
The text was updated successfully, but these errors were encountered: