Skip to content

Feature: OTH-257 Refaktorera Hämtning av Parkeringsplatser flytta till leasing#319

Merged
lalmqvist merged 9 commits into
mainfrom
feature/uth-257-refaktorera-hamtning-av-parkeringsplatser-flytta-till-leasing
Jul 2, 2025
Merged

Feature: OTH-257 Refaktorera Hämtning av Parkeringsplatser flytta till leasing#319
lalmqvist merged 9 commits into
mainfrom
feature/uth-257-refaktorera-hamtning-av-parkeringsplatser-flytta-till-leasing

Conversation

@lalmqvist

Copy link
Copy Markdown
Contributor

No description provided.

@linear

linear Bot commented Jun 27, 2025

Copy link
Copy Markdown

@lalmqvist lalmqvist force-pushed the feature/uth-257-refaktorera-hamtning-av-parkeringsplatser-flytta-till-leasing branch from 4f83e2b to 65c17f8 Compare June 30, 2025 12:26
@lalmqvist lalmqvist changed the base branch from feat/UTH-251-Model-Changes-to-Fetch-RentalObject-from-XPand-DB to main June 30, 2025 12:26
Comment thread package.json
Comment on lines +32 to +40
includeRentalObjectCodes?: string[]
): Promise<AdapterResult<RentalObject[], 'not-found' | 'unknown'>> => {
try {
let url = `${tenantsLeasesServiceUrl}/parking-spaces`

if (includeRentalObjectCodes && includeRentalObjectCodes.length) {
const codesParam = includeRentalObjectCodes.join(',')
url += `?includeRentalObjectCodes=${encodeURIComponent(codesParam)}`
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think includeRentalObjectCodes feels like a name for a boolean.
I think rentalObjectCodes fits better for a list of strings :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Agreed! 👯

* content:
* type: array
* items:
* $ref: '#/components/schemas/RentalObject'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm a bit confused about this $ref usage. We use this in property-base and work-order projects and I don't think it's set up here in leasing (or in property-management for that matter). Do you know anything about this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Nope, good point. Both me and Johanna worked on this code so I can't answer this one. But it looks like it doesn't do anything so I'll see what I can do.

@lalmqvist lalmqvist requested a review from momentiris July 1, 2025 14:10
@lalmqvist lalmqvist merged commit 67990cf into main Jul 2, 2025
1 check passed
@lalmqvist lalmqvist deleted the feature/uth-257-refaktorera-hamtning-av-parkeringsplatser-flytta-till-leasing branch July 2, 2025 09:33
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.

3 participants