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

Add or create labels during upload #4901

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from
Open

Conversation

perryr16
Copy link
Contributor

@perryr16 perryr16 commented Dec 12, 2024

Any background context you want to provide?

What's this PR do?

Allows users to upload property and taxlot labels. Incoming values in a csv's "Property Labels" or "Tax Lot Labels" column will be processed and applied as a label. If a label does not exist, one will be created.

Labels are applied to a PropertyView, however during the upload process PropertyStates are created (mapping) several steps before a PropertyView is applied (matching). As a result, the PropertyState has to carry the incoming label information in a new text field PropertyState.incoming_labels until it can be applied to the related PropertyView.

How should this be manually tested?

From the inventory list, export a set of properties to a csv or spreadsheet. Then in a new cycle, upload that exported file, confirm the correct labels are applied.

What are the relevant tickets?

#4789

Screenshots (if appropriate)

@perryr16 perryr16 added the Feature Add this label to new features. This will be reflected in the change log when generated. label Dec 12, 2024
@perryr16 perryr16 marked this pull request as ready for review December 17, 2024 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Add this label to new features. This will be reflected in the change log when generated.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant