Skip to content

Added top level menu option for config, and added bulk import to all 4 classes#44

Draft
erichester76 wants to merge 13 commits intoICTU:masterfrom
erichester76:master
Draft

Added top level menu option for config, and added bulk import to all 4 classes#44
erichester76 wants to merge 13 commits intoICTU:masterfrom
erichester76:master

Conversation

@erichester76
Copy link

I also changed the menu top level name to Software because it looks better in the top level.

If you want to move the meny top level just set this in plugins.py

PLUGINS_CONFIG = {
'netbox_slm': {
'top_level_menu': True,
},
}

@erichester76
Copy link
Author

I would suggest a squash, I worked in the repo. Sorry.

@wkoot
Copy link
Collaborator

wkoot commented Oct 14, 2024

I would suggest a squash, I worked in the repo. Sorry.

No problem, we're very happy to receive contributions. I'll clean up and do some testing before merge

wkoot pushed a commit that referenced this pull request Oct 14, 2024
Closes #42
Based on @erichester76's #44

Signed-off-by: wkoot <3715211+wkoot@users.noreply.github.com>
wkoot added a commit that referenced this pull request Oct 14, 2024
Closes #42
Based on @erichester76's #44

Signed-off-by: wkoot <3715211+wkoot@users.noreply.github.com>
Co-authored-by: Eric Hester <eric.hester@umbrella.tech>
wkoot pushed a commit that referenced this pull request Oct 14, 2024
Closes #4
Based on @erichester76's #44

Signed-off-by: wkoot <3715211+wkoot@users.noreply.github.com>
@wkoot
Copy link
Collaborator

wkoot commented Oct 14, 2024

Hmm, there seem to be quite some errors when trying to use the import feature.
The output data produced by the Export (CSV) option is not importable itself, so testing is a bit complicated.
All fields which are externally referenced (i.e. foreign keys), need to be manually changed in the csv (or omitted).
Additionally, some of the field validation checks don't work as in the regular form: e.g. stored_location_url validation (being LaxURLField).
For now, I'll try to merge a limited set of fields for importing. Then we can work on adding the other fields later

wkoot pushed a commit that referenced this pull request Oct 14, 2024
Closes #4
Based on @erichester76's #44

Signed-off-by: wkoot <3715211+wkoot@users.noreply.github.com>
@wkoot wkoot marked this pull request as draft October 14, 2024 11:40
wkoot added a commit that referenced this pull request Oct 14, 2024
Partially implements #4
Based on @erichester76's #44

Signed-off-by: wkoot <3715211+wkoot@users.noreply.github.com>
Co-authored-by: Eric Hester <eric.hester@umbrella.tech>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants