ArnesSI / netbox-inventory

Manage your hardware inventory in NetBox
MIT License
191 stars 16 forks source link

Netbox 4 compatibility #165

Closed matejv closed 2 months ago

matejv commented 2 months ago

List of items from official plugin porting guide:

General
    βœ… Python support
    βœ… Plugin resources relocated
    β˜‘οΈ ContentType renamed to ObjectType (I think I fixed those that need to be fixed)
Views
    🟑 View actions must be dictionaries (not in use) 
Forms
    βœ… Remove BootstrapMixin
    βœ… Update Fieldset definitions
Navigation
    βœ… Remove button colors
UI Layout
    βœ… Renamed template blocks
    🟑 Utilize flex controls (not in use)
    🟑 Check column offsets (not in use)
    βœ… Tables inside cards
    βœ… Remove btn-sm class from buttons
    βœ… Update bg-$color classes
    🟑 Obsolete custom CSS classes (not in use)
REST API
    βœ… Extend serializer for brief mode
    βœ… Include description fields in brief mode
GraphQL
    Change schema.py
    Change types.py
    Change filters.py

Other stuff:

βœ… count_related moved
asset_edit template - check
check all other complex templates
βœ… The annotated_date template filter and annotated_now template tag have been removed.
βœ… move all nested table action buttons from footer to header
βœ… change how htmx tables are rendered (new macro) 
on custom tabs for core objects (tabs folder), fix controls button layout
βœ… update warranty progress bar component
update render_table to htmx
investigate image attachments includes if it's possible to hide object type & parent columns
matejv commented 2 months ago

Test should pass and basic functionality should work.

Still need to check and update a bunch of templates and other minor stuff...

matejv commented 2 months ago

A few issues I identified and not yet fixed are ether netbox bugs, bugs from existing version of the plugin (and are not straightforward to fix) or other small issues that can wait a bit.