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

PSP-7158 Show markers positioned corresponding to that file #4147

Merged
merged 11 commits into from
Jul 9, 2024

Conversation

asanchezr
Copy link
Collaborator

video.mp4

@asanchezr asanchezr added the enhancement New feature or request label Jul 2, 2024
@asanchezr asanchezr self-assigned this Jul 2, 2024
Copy link
Contributor

github-actions bot commented Jul 2, 2024

✅ No secrets were detected in the code.

@asanchezr asanchezr force-pushed the psp-7158-file-marker-locations branch from acdfae2 to cd85ac6 Compare July 3, 2024 00:14
Copy link
Contributor

github-actions bot commented Jul 3, 2024

✅ No secrets were detected in the code.

@asanchezr asanchezr force-pushed the psp-7158-file-marker-locations branch from cd85ac6 to 6555c79 Compare July 3, 2024 18:10
Copy link
Contributor

github-actions bot commented Jul 3, 2024

✅ No secrets were detected in the code.

&& filePropertyToUpdate is PimsPropertyAcquisitionFile acquisitionPropertyToUpdate)
{
// convert spatial location from lat/long (4326) to BC Albers (3005) for database storage
var geom = incomingAcquisitionProperty.Location;
Copy link
Collaborator

Choose a reason for hiding this comment

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

does the above casting also check for null?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Also - a note that this casting will go away this sprint with the story to use location on other file types

if (fileProperty is PimsPropertyAcquisitionFile acquisitionFileProperty)
{
// convert spatial location from lat/long (4326) to BC Albers (3005) for database storage
var geom = acquisitionFileProperty.Location;
Copy link
Collaborator

Choose a reason for hiding this comment

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

does this casting check for null?

@@ -102,6 +93,20 @@ export class DispositionFormModel implements WithDispositionTeam {
};
}

private toPropertyApi(x: PropertyForm): ApiGen_Concepts_DispositionFileProperty {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would it be worth creating a single function that converts to ApiGen_Concepts_FileProperty instead?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, we could create that for the 2 files that don't have extra info in there (Disposition and Acquisition). Research and Lease I believe have extra fields but we could call the shared function and then append the extra stuff. Will look into it

@asanchezr asanchezr force-pushed the psp-7158-file-marker-locations branch from 6555c79 to 4de8c22 Compare July 5, 2024 16:55
Copy link
Contributor

github-actions bot commented Jul 5, 2024

✅ No secrets were detected in the code.

@asanchezr asanchezr force-pushed the psp-7158-file-marker-locations branch from 4de8c22 to a372805 Compare July 5, 2024 18:27
Copy link
Contributor

github-actions bot commented Jul 5, 2024

✅ No secrets were detected in the code.

@asanchezr asanchezr force-pushed the psp-7158-file-marker-locations branch from a372805 to a44409e Compare July 5, 2024 22:28
Copy link
Contributor

github-actions bot commented Jul 5, 2024

✅ No secrets were detected in the code.

Copy link
Contributor

github-actions bot commented Jul 9, 2024

✅ No secrets were detected in the code.

@asanchezr
Copy link
Collaborator Author

Merging this PR as-is to get it to FT. I will address PR comments in my next related PR

@asanchezr asanchezr merged commit 5aaef9e into bcgov:dev Jul 9, 2024
7 checks passed
@asanchezr asanchezr deleted the psp-7158-file-marker-locations branch July 9, 2024 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants