Skip to content

Conversation

@arthanson
Copy link
Collaborator

Fixes: #16232

Not 100% sure of this solution, relies on the 'return_url' which will be for bulk operations not being the same as the request path. As this routine tries to set if the table is embedded, I'm not sure if there is another flag to look at that would be different if it is a main table or embedded.

@arthanson arthanson marked this pull request as ready for review May 21, 2024 23:20
@arthanson arthanson requested a review from jeremystretch May 21, 2024 23:20
return redirect(f'{request.path}?{query_params.urlencode()}')

def _is_embedded_path(self, request):
if 'return_url' in request.GET:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can't rely on return_url as an indicator for the nature of the request.

@jeremystretch
Copy link
Member

I ended up taking a different, more concrete approach in #16239. We should still dedicate some time at some point to doing some general cleanup around embedded tables, but I think this suffices for now.

@jeremystretch jeremystretch deleted the 16232-ui-checkbox branch June 20, 2024 14:55
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Netbox UI. Checkbox disappearing in any Table (Site, Rack, etc) after clicking to next page

3 participants