Repository navigation
docs(APP-18550): allow deleting owners and facility managers via CSV #35
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
Open
nitin33singh
wants to merge
1
commit into
master
Choose a base branch
from
APP-18550-person-responsible-deletes
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -356,40 +356,41 @@ insert,aa955c4c-41ac-4a47-9157-3c6fb8450ef4,Test GmbH,DE,Freiburg,Merzhauserstra | |
|
|
||
| ### owners.csv | ||
|
|
||
| The `owners.csv` file describes the owners of properties, groups or units. Link an owner to a resource with [_ownerRelations.csv_](#ownerrelationscsv). | ||
| The `owners.csv` file describes the owners of properties, groups or units. Link an owner to a resource with [_ownerRelations.csv_](#ownerrelationscsv). A `delete` row only needs the `id`; it removes the owner. An `insert` of an owner that already exists updates it. | ||
|
|
||
| #### Fields | ||
|
|
||
| | Field | Type | Description | | ||
| | ----------------- | ---------------------------------- | --------------------------------- | | ||
| | **importType** | [Import Type](#import-type) | One of:<br/>`insert`, or `update` | | ||
| | **id** | [UUID](#uuid-type) | Your UUID for the owner | | ||
| | **name** | [string](#string-type) | Name of the person or company | | ||
| | **\*email** | [string](#string-type) | | | ||
| | **\*phone** | [Phone Number](#phone-number-type) | | | ||
| | **\*streetName** | [string](#string-type) | | | ||
| | **\*houseNumber** | [string](#string-type) | | | ||
| | **\*zipCode** | [Postal Code](#postalcode-type) | | | ||
| | **\*city** | [string](#string-type) | | | ||
| | **\*country** | [Country](#country-type) | | | ||
| | Field | Type | Description | | ||
| | ----------------- | ---------------------------------- | ---------------------------------------- | | ||
| | **importType** | [Import Type](#import-type) | One of:<br/>`insert`, `update`, `delete` | | ||
| | **id** | [UUID](#uuid-type) | Your UUID for the owner | | ||
| | **name** | [string](#string-type) | Name of the person or company | | ||
| | **\*email** | [string](#string-type) | | | ||
| | **\*phone** | [Phone Number](#phone-number-type) | | | ||
| | **\*streetName** | [string](#string-type) | | | ||
| | **\*houseNumber** | [string](#string-type) | | | ||
| | **\*zipCode** | [Postal Code](#postalcode-type) | | | ||
| | **\*city** | [string](#string-type) | | | ||
| | **\*country** | [Country](#country-type) | | | ||
|
|
||
| #### Example | ||
|
|
||
| ```csv | ||
| importType,id,name,streetName,houseNumber,zipCode,city,country,email,phone | ||
| insert,3f2504e0-4f89-41d3-9a0c-0305e82c3301,Owner One AG,Teststrasse,1,1000,Testtown,CH,[email protected],+41000000001 | ||
| insert,3f2504e0-4f89-41d3-9a0c-0305e82c3302,Owner Two AG,,,,,,, | ||
| delete,3f2504e0-4f89-41d3-9a0c-0305e82c3303,,,,,,,, | ||
| ``` | ||
|
|
||
| ### ownerRelations.csv | ||
|
|
||
| The `ownerRelations.csv` file links an owner to a property, group or unit. A resource has at most one owner: linking an owner replaces the resource's current owner. | ||
| The `ownerRelations.csv` file links an owner to a property, group or unit. A resource has at most one owner: linking an owner replaces the resource's current owner. A `delete` row unlinks the owner from the resource and keeps the owner. | ||
|
|
||
| #### Fields | ||
|
|
||
| | Field | Type | Description | | ||
| | ---------------- | ------------------------------- | ------------------------------------------------------------------------------------------ | | ||
| | **importType** | [Import Type](#import-type) | `insert` | | ||
| | **importType** | [Import Type](#import-type) | One of:<br/>`insert`, or `delete` | | ||
| | **ownerId** | [UUID](#uuid-type) | The foreign UUID of the owner (_owners.csv_ `id`) | | ||
| | **resourceId** | [UUID](#uuid-type) | The foreign UUID of the resource the owner owns ([resource](#resource-type).csv `id`) | | ||
| | **resourceType** | [Resource Type](#resource-type) | The type of the resource being referenced by the resourceId: `property`, `group` or `unit` | | ||
|
|
@@ -400,43 +401,45 @@ The `ownerRelations.csv` file links an owner to a property, group or unit. A res | |
| importType,ownerId,resourceId,resourceType | ||
| insert,3f2504e0-4f89-41d3-9a0c-0305e82c3301,7cfc69f4-6b44-4a84-994a-f6b60ff63b94,property | ||
| insert,3f2504e0-4f89-41d3-9a0c-0305e82c3302,e60bde24-7202-4a1e-b255-9b3e2b9e4475,unit | ||
| delete,3f2504e0-4f89-41d3-9a0c-0305e82c3303,1b6e456c-1ba0-4f04-aed2-f228944836be,unit | ||
| ``` | ||
|
|
||
| ### facilityManagers.csv | ||
|
|
||
| The `facilityManagers.csv` file describes the facility managers (janitors) of properties, groups or units. Link a facility manager to a resource with [_facilityManagerRelations.csv_](#facilitymanagerrelationscsv). | ||
| The `facilityManagers.csv` file describes the facility managers (janitors) of properties, groups or units. Link a facility manager to a resource with [_facilityManagerRelations.csv_](#facilitymanagerrelationscsv). A `delete` row only needs the `id`; it removes the facility manager. An `insert` of a facility manager that already exists updates it. | ||
|
|
||
| #### Fields | ||
|
|
||
| | Field | Type | Description | | ||
| | ----------------- | ---------------------------------- | ---------------------------------- | | ||
| | **importType** | [Import Type](#import-type) | One of:<br/>`insert`, or `update` | | ||
| | **id** | [UUID](#uuid-type) | Your UUID for the facility manager | | ||
| | **name** | [string](#string-type) | Name of the person or company | | ||
| | **\*email** | [string](#string-type) | | | ||
| | **\*phone** | [Phone Number](#phone-number-type) | | | ||
| | **\*streetName** | [string](#string-type) | | | ||
| | **\*houseNumber** | [string](#string-type) | | | ||
| | **\*zipCode** | [Postal Code](#postalcode-type) | | | ||
| | **\*city** | [string](#string-type) | | | ||
| | **\*country** | [Country](#country-type) | | | ||
| | Field | Type | Description | | ||
| | ----------------- | ---------------------------------- | ---------------------------------------- | | ||
| | **importType** | [Import Type](#import-type) | One of:<br/>`insert`, `update`, `delete` | | ||
| | **id** | [UUID](#uuid-type) | Your UUID for the facility manager | | ||
| | **name** | [string](#string-type) | Name of the person or company | | ||
| | **\*email** | [string](#string-type) | | | ||
| | **\*phone** | [Phone Number](#phone-number-type) | | | ||
| | **\*streetName** | [string](#string-type) | | | ||
| | **\*houseNumber** | [string](#string-type) | | | ||
| | **\*zipCode** | [Postal Code](#postalcode-type) | | | ||
| | **\*city** | [string](#string-type) | | | ||
| | **\*country** | [Country](#country-type) | | | ||
|
|
||
| #### Example | ||
|
|
||
| ```csv | ||
| importType,id,name,streetName,houseNumber,zipCode,city,country,email,phone | ||
| insert,8c1f6a2e-5b7d-4e3a-9f10-2d4b6c8e0a11,Hauswart Muster,Hauswartweg,5,3000,Bern,CH,[email protected],+41791112233 | ||
| delete,8c1f6a2e-5b7d-4e3a-9f10-2d4b6c8e0a12,,,,,,,, | ||
| ``` | ||
|
|
||
| ### facilityManagerRelations.csv | ||
|
|
||
| The `facilityManagerRelations.csv` file links a facility manager to a property, group or unit. A resource has at most one facility manager: linking a facility manager replaces the resource's current one. | ||
| The `facilityManagerRelations.csv` file links a facility manager to a property, group or unit. A resource has at most one facility manager: linking a facility manager replaces the resource's current one. A `delete` row unlinks the facility manager from the resource and keeps the facility manager. | ||
|
|
||
| #### Fields | ||
|
|
||
| | Field | Type | Description | | ||
| | --------------------- | ------------------------------- | ------------------------------------------------------------------------------------------------------- | | ||
| | **importType** | [Import Type](#import-type) | `insert` | | ||
| | **importType** | [Import Type](#import-type) | One of:<br/>`insert`, or `delete` | | ||
| | **facilityManagerId** | [UUID](#uuid-type) | The foreign UUID of the facility manager (_facilityManagers.csv_ `id`) | | ||
| | **resourceId** | [UUID](#uuid-type) | The foreign UUID of the resource the facility manager looks after ([resource](#resource-type).csv `id`) | | ||
| | **resourceType** | [Resource Type](#resource-type) | The type of the resource being referenced by the resourceId: `property`, `group` or `unit` | | ||
|
|
@@ -447,6 +450,7 @@ The `facilityManagerRelations.csv` file links a facility manager to a property, | |
| importType,facilityManagerId,resourceId,resourceType | ||
| insert,8c1f6a2e-5b7d-4e3a-9f10-2d4b6c8e0a11,7cfc69f4-6b44-4a84-994a-f6b60ff63b94,property | ||
| insert,8c1f6a2e-5b7d-4e3a-9f10-2d4b6c8e0a11,ab463b8b-a76c-4f6a-a726-75ab5730b69b,group | ||
| delete,8c1f6a2e-5b7d-4e3a-9f10-2d4b6c8e0a12,9b86a4d7-ab95-4b65-a553-24fac1c60627,group | ||
| ``` | ||
|
|
||
| ### manifest.json | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use a group ID in the delete example.
The
properties.csvexample defines9b86a4d7-ab95-4b65-a553-24fac1c60627as a property, not a group. If readers use these examples together, this row cannot resolve the group and the import can fail. Use an ID from thegroups.csvexample. (raw.githubusercontent.com)