Life ConnectLife Connect
Wiki index
Architecture
Services
Concepts
Runbooks
Infra
Swagger Docs
GitHub
Wiki index
Architecture
Services
Concepts
Runbooks
Infra
Swagger Docs
GitHub
  • Archive
  • Data Dictionary
  • Functional Epics

    • DICTIONARY OF ATTRIBUTES
    • Search Condos
    • Display

      • DisplayAll

        • Display all - Contracts
        • Display all - invoices
        • Display all - parts
        • Display all - Persons Relationships
        • Display all - Persons
        • Display tickets
      • DisplayContract

        • Display bank account Contract
        • Display Condo Member Contract
        • Display contact contract
        • Display Employee Contract
        • Display Generic Contract
        • Display Insurance Contract
        • Display Legal Represent Contract
        • Display Oral Contract
        • Display Owner Contract
        • Display Condo Regulation Contract
        • Display rental Contract
        • Display Supplier Contract
        • Display Trustee Contract
      • DisplayDelegate

        • Display Delegate
      • DisplayHistory

        • Display history
      • DisplayPerson

        • Display Company Person
        • Display Condo Person
        • Display Division Person
        • Display Group Person
        • Display Indivision Person
        • Display Natural Person
        • Display Union Person
        • Display Unknown Person
      • DisplayPersonsContracts

        • Display all Interventions
      • DisplayProperty

        • Display part
        • Display part
      • UiPerson

        • Display "mini" Persons
    • Process

      • Create

        • Create property & condo
      • Delete

        • Delete objects according to state machine
      • RC Renewal

        • RC RESIDENTIAL - automatic renewal
      • Review

        • rent amount review - RC residential - creation
        • rent amount review - RC residential - take-over
      • Sell

        • Sell a unit
    • Reporting

      • GRR

        • GLOBAL RENT REPORT
    • Search

      • Search
    • StateMachine

      • CreatingContract

        • State machine - creating a rental contract
        • State machine - creating a rental delegate contract
        • State machine - Referencing a abstract part contract
        • State machine - Referencing a bank contract
        • State machine - Referencing a condo regulation contract
        • State machine - Referencing a contact contract
        • State machine - Referencing an employee contract
        • State machine - Referencing a generic contract
        • State machine - Referencing a legal represent contract
        • State machine - Referencing a owner contract
        • State machine - Referencing a rental contract
        • State machine - Referencing a supplier contract
        • State machine - Referencing a trustee contract
      • CreatingIntervention

        • State machine - creating a ticket
        • State machine - Referencing a message
      • CreatingInvoice

        • State machine - creating a incoming (supplier) invoice
      • CreatingPayments

        • State machine - creating an incoming payment
      • EncodingPart

        • CreatingPart

          • State machine - Referencing part relationships
          • State machine - Referencing a part
      • EncodingPerson

        • CreatingAddresses

          • State machine - Creating email address
          • State machine - Creating phone address
          • State machine - Creating postal address
          • State machine - Creating web address
        • CreatingPerson

          • State machine - Referencing a company person
          • State machine - Referencing a condo person
          • State machine - Referencing a division person
          • State machine - Referencing an group person
          • State machine - Referencing an indivision person
          • State machine - Referencing a natural person
          • State machine - Referencing a union person
        • CreatingShareHolders

          • State machine - valuing a shareholder
      • Scanning

        • State machine scanning - analyze a document
        • State machine scanning - matching a document
        • State machine scanning - encoding a document : related information
    • Utility

      • Allocation keys
      • Company settings
      • Document data & file
      • Revision Index
    • Validations

      • Shareholders validation
  • Implicit

    • Callback

      • Logging In
  • ProductBoard

    • Rental Process

      • Rental delegate process
    • Ticketing

      • Create a ticket - link a ticket in Outlook add-in - add a call - display a ticket
      • Display Person Info in Outlook add-in
  • Technical Epics

    • Indexation Feature Documentation
    • Rent Amount Management Feature Documentation
    • I have an API
    • I can store the balance of an account
    • I Have Person Notifications
    • 🧩 System Process Diagrams
    • The Team has a DEV environment
    • The Team is organized
    • Accounting

      • Re-generation of Invoices
      • I can call the rent for my Rental Contract
      • Payment Creation Strategy Feature Documentation
      • I Can Revese

        • Payment Reversal
      • I Have Invoices

        • I have direction on invoice's item level
      • I Have Subsidies

        • I Can Receive Family Allowance Payments - Technical Documentation
        • Subsidies + Direct Debit Documentation
    • Communication Module

      • Communication module
    • Contracts

      • I can have contract guarantors
      • API Models
      • I Have Call For Rent Process

        • Call For Rent (CFR) Process Documentation
      • Occupancy Compensation

        • **OCCUPANCY COMPENSATION Documentation**
      • State Machine

        • I can have the Rental Contract state machine
    • Database

      • Database Indexes
    • E2e Testing

      • I can create an E2E dataset
    • Env Setup

      • Adapt env to stateless UI build
      • Blockhound
      • Table of Environments and Their Specifications
      • Environment How-To
      • Java Flight Recorder Management Documentation
      • Local Environment Setup
      • Kubernetes Logs Retrieval Documentation
      • Monitoring
      • I can create a new organisation
      • Production Environment Configuration
      • Remote Environment Setup
      • Set up of separate DB for env
      • Terraform Aws S3 Buckets
      • adb-ui Service Version Update
    • Files

      • I can have tags for files
    • Globals

      • boundaries
      • boundaries
      • boundaries
      • boundaries
    • Messaging

      • MongoDB Trigger Model Documentation
    • Open Api

      • Swagger Documentation Guide
      • Swagger
    • Parts

      • I Have A Forecast And Actuals Module
      • I can have part equipments
    • Process

      • Pre-Meeting Questionnaire
      • I Can Release My Feature
    • Security

      • I can create and provision an organisation
      • a user is granted access to the application
    • Stress Test

      • Introduction
      • Reports

        • Introduction
        • Introduction
        • Introduction
        • Introduction
        • Introduction
        • Table of contents
    • Tickets

      • Ticket Details Functionality
    • Troubleshooting

      • Prometheus Memory Issue Handling
Last updated 2025-01-20⚠️ 1 year 4 months old — verify against current code before relying on details.

I can have tags for files

Overview

The FileMetadata model has been updated to include new functionality related to tagging files. These changes include a new tags field, new query parameters for filtering based on tags, and the use of tags for marking canceled files during tenant leave processes. Below are the details of these changes and how to use them.


1. New tags[] Field in FileMetadata

I have:

  • A new field tags[] in the FileMetadata class. The data type for the tags is an array of CatalogValue objects.

I can:

  • Store multiple tags associated with a FileMetadata object.
  • Each tag is represented by a CatalogValue that includes:
    • type: The type of catalog value (always "CatalogValue").
    • id: The unique identifier for the tag.

2. Updating Tags with PATCH Request

I can:

  • Update the tags of a specific FileMetadata using a PATCH request.

Request Format:

To update the tags of a file, send a PATCH request to the following endpoint:

Request URL:

PATCH /adb-files/files/metadata/{fileMetadataId}/tags

Request Body:

{
  "tags": [
    {
      "type": "CatalogValue",
      "id": "FILE_TAG.CANCELED"
    }
  ]
}
  • tags[]: An array of CatalogValue objects to be added to the FileMetadata.
  • In the above example, the tag FILE_TAG.CANCELED is added to the FileMetadata.

3. New Query Parameters for FileMetadata Search

I have:

  • Two new query parameters for searching FileMetadata based on tags:
    • includeTags[]: Filters FileMetadata that contain the specified tags.
    • excludeTags[]: Filters FileMetadata that do not contain the specified tags.

I can:

  • Use the includeTags[] parameter to filter files that have a specific tag.
  • Use the excludeTags[] parameter to filter files that do not have a specific tag.

Example Query:

To retrieve a list of FileMetadata that includes the tag FILE_TAG.CANCELED, you can send the following GET request:

Request URL:

GET /adb-files/files/metadata?q={
"pageable": {
  "sorts": [{"fieldName": "id", "sortOrder": "ASC"}],
  "pageNumber": 0,
  "pageSize": 15
},
"target": {
  "type": "TargetObject",
  "targetId": "{$CONTRACT_ID}",
  "targetType": "RentalContract"
},
"includeTags": [
  {
    "type": "CatalogValue",
    "id": "FILE_TAG.CANCELED"
  }
]
}

This query will return a list of FileMetadata where the tags field contains the FILE_TAG.CANCELED tag.

Exclude Tags Example:

To retrieve FileMetadata that does not contain the FILE_TAG.CANCELED tag, use the excludeTags[] parameter.

Example Query URL:

GET /adb-files/files/metadata?q={
"excludeTags": [
{
"type": "CatalogValue",
"id": "FILE_TAG.CANCELED"
}
]
}

4. Use of Tags for Tenant Leave Cancellation

I have:

  • A tagging system that is used to mark files associated with tenant leave processes.
  • Specifically, the FILE_TAG.CANCELED tag is used to cancel files created when a RentalContract transitions from SIGNED to NOTICED.

I can:

  • Use the FILE_TAG.CANCELED tag to mark files for cancellation.
  • This happens when the state of a rental contract changes from NOTICED back to SIGNED, indicating the cancellation of the tenant leave.

Example Use Case:

During tenant leave, files are created when the rental contract moves from the SIGNED state to the NOTICED state. If the tenant leave is canceled (i.e., the contract moves back from NOTICED to SIGNED), all related files are canceled. To mark these files as canceled, the FILE_TAG.CANCELED tag is added to them.

Edit this page
Last Updated:
Contributors: Yevhenii Khudolii