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

Added vip and byod to importer #12624

Merged
merged 8 commits into from
Mar 7, 2023
Merged

Conversation

snipe
Copy link
Owner

@snipe snipe commented Mar 6, 2023

This should fix the backend and front-end (and sample CSVs) to include the newly added vip flag on the user importer and the newly added byod on the asset importer. The vue stuff won't matter once #12587 is merged, but this should work until then.

I might have missed something here though, as the test import I ran didn't seem to apply the correct values for vip as a boolean.

Edit: It seems like we were not selecting or searching on the vip in the Users API controller and it was not in the users transformer, which was causing it to show as false in the listing UI. It was actually be imported correctly.

Signed-off-by: snipe <snipe@snipe.net>
Signed-off-by: snipe <snipe@snipe.net>
Signed-off-by: snipe <snipe@snipe.net>
Signed-off-by: snipe <snipe@snipe.net>
Signed-off-by: snipe <snipe@snipe.net>
Signed-off-by: snipe <snipe@snipe.net>
@what-the-diff
Copy link

what-the-diff bot commented Mar 6, 2023

  • Added byod field to assets
  • Added vip field to users
  • Updated import mappings for both fields in the importer file and added them as columns on their respective tables (assets,users)

Signed-off-by: snipe <snipe@snipe.net>
@snipe snipe changed the title Features/added vip and byod to importer Added vip and byod to importer Mar 6, 2023
Copy link
Collaborator

@marcusmoore marcusmoore left a comment

Choose a reason for hiding this comment

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

Looks good. Added a question that isn't a blocker.

app/Importer/AssetImporter.php Outdated Show resolved Hide resolved
Signed-off-by: snipe <snipe@snipe.net>
@snipe snipe merged commit 1ebbc76 into develop Mar 7, 2023
@snipe snipe deleted the features/added_vip_and_byod_to_importer branch March 7, 2023 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants