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

Inventory: Groups: Create Meters -- 500 error #4935

Open
RDmitchell opened this issue Jan 25, 2025 · 2 comments
Open

Inventory: Groups: Create Meters -- 500 error #4935

RDmitchell opened this issue Jan 25, 2025 · 2 comments
Labels
Groups Inventory Groups Meter Data

Comments

@RDmitchell
Copy link

instance: staging
SHA: e8b9748
Org: BPS Test - Robin

Created a group with 3 records
Then tried to add Meters to that group
Set interval to Month
Click Create Meter
Got a 500 error

Image

@RDmitchell RDmitchell added Meter Data Groups Inventory Groups labels Jan 25, 2025
@kflemin
Copy link
Contributor

kflemin commented Jan 27, 2025

I could replicate this error on dev1 on a group with 2 properties and nothing else. If I go to the meters tab and change the interval dropdown to "month" I get a 500 error. I think this is the error details:

ValueError: invalid literal for int() with base 10: 'undefined'
File "django/db/models/fields/init.py", line 1823, in get_prep_value
return int(value)

ValueError: Field 'id' expected a number but got 'undefined'.
(19 additional frame(s) were not displayed)
...
File "seed/decorators.py", line 144, in wrapper
response = func(self, request, *args, **kwargs)
File "seed/lib/superperms/orgs/decorators.py", line 206, in _wrapped
return _validate_permissions(perm_name, request, requires_org) or fn(self, request, *args, **kwargs)
File "seed/lib/superperms/orgs/decorators.py", line 374, in _wrapped
return assert_hierarchy_access(
File "seed/lib/superperms/orgs/decorators.py", line 264, in assert_hierarchy_access
property_view = PropertyView.objects.get(pk=kwargs[property_view_id_kwarg])

@RDmitchell
Copy link
Author

@kflemin -- should this be fixed and included in a bug fix release for 3.2.3 for the various group fixes?

@RDmitchell RDmitchell moved this to In Progress in FY25 Q1 Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Groups Inventory Groups Meter Data
Projects
Status: In Progress
Development

No branches or pull requests

2 participants