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

fix(feature info): repairs feature info for geocore layers #2631

Conversation

DamonU2
Copy link
Member

@DamonU2 DamonU2 commented Dec 4, 2024

Closes #2593
Closes #2210
Closes #563

Description

Fixes some issues with getting the feature info for some geocore layers. Adds support for html response from WMS getFeatureInfo.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

https://damonu2.github.io/geoview/add-layers.html
HTML WMS: 6433173f-bca8-44e6-be8e-3e8a19d3c299

Checklist:

  • I have build (rush build) and deploy (rush host) my PR
  • I have connected the issues(s) to this PR
  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have created new issue(s) related to the outcome of this PR is needed
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

This change is Reviewable

@DamonU2 DamonU2 self-assigned this Dec 4, 2024
@DamonU2 DamonU2 requested a review from jolevesq December 4, 2024 22:41
Copy link
Member

@jolevesq jolevesq left a comment

Choose a reason for hiding this comment

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

Reviewed 7 of 7 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @DamonU2)


packages/geoview-core/src/geo/layer/gv-layers/abstract-gv-layer.ts line 255 at r1 (raw file):

      // If queryable
      if (layerConfig.source?.featureInfo?.queryable === false) {

Why the previous was not working?

Copy link
Member

@Alex-NRCan Alex-NRCan left a comment

Choose a reason for hiding this comment

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

Reviewed 6 of 7 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @DamonU2 and @jolevesq)


packages/geoview-core/src/geo/layer/gv-layers/abstract-gv-layer.ts line 255 at r1 (raw file):

Previously, jolevesq (Johann Levesque) wrote…

Why the previous was not working?

It essentially turns the condition to false when source?.queryable is undefined instead of true by default when it's undefined.
Btw, should probably edit the comment just above the if.

@DamonU2
Copy link
Member Author

DamonU2 commented Dec 5, 2024

Only WMS layer I know of with HTML return on feature info: 6433173f-bca8-44e6-be8e-3e8a19d3c299

@DamonU2 DamonU2 force-pushed the 2593-feature-info-errors branch 2 times, most recently from 604ee4f to edcb3a7 Compare December 5, 2024 15:02
Copy link
Member

@jolevesq jolevesq left a comment

Choose a reason for hiding this comment

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

Reviewable status: 5 of 7 files reviewed, 1 unresolved discussion (waiting on @Alex-NRCan and @DamonU2)


packages/geoview-core/src/geo/layer/gv-layers/abstract-gv-layer.ts line 255 at r1 (raw file):

Previously, Alex-NRCan (Alex) wrote…

It essentially turns the condition to false when source?.queryable is undefined instead of true by default when it's undefined.
Btw, should probably edit the comment just above the if.

We shuold have the warning even when undefined.... should we revert

Copy link
Member

@jolevesq jolevesq left a comment

Choose a reason for hiding this comment

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

Reviewable status: 5 of 7 files reviewed, 1 unresolved discussion (waiting on @Alex-NRCan and @DamonU2)


packages/geoview-core/src/geo/layer/gv-layers/abstract-gv-layer.ts line 255 at r1 (raw file):

Previously, jolevesq (Johann Levesque) wrote…

We shuold have the warning even when undefined.... should we revert

If we need to continue when undefined, we need a GV comment to explain why we should do this

@DamonU2 DamonU2 force-pushed the 2593-feature-info-errors branch 2 times, most recently from 2da198b to 6dff860 Compare December 9, 2024 15:05
Copy link
Member Author

@DamonU2 DamonU2 left a comment

Choose a reason for hiding this comment

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

Reviewable status: 3 of 7 files reviewed, 1 unresolved discussion (waiting on @Alex-NRCan and @jolevesq)


packages/geoview-core/src/geo/layer/gv-layers/abstract-gv-layer.ts line 255 at r1 (raw file):

Previously, Alex-NRCan (Alex) wrote…

It essentially turns the condition to false when source?.queryable is undefined instead of true by default when it's undefined.
Btw, should probably edit the comment just above the if.

Done.

Copy link
Member

@jolevesq jolevesq left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r3, all commit messages.
Reviewable status: 4 of 7 files reviewed, 1 unresolved discussion (waiting on @Alex-NRCan)


packages/geoview-core/src/geo/layer/gv-layers/abstract-gv-layer.ts line 255 at r1 (raw file):

Previously, DamonU2 (Damon Ulmi) wrote…

Done.

GV need to be capitalize letter.... Do we want logger.error? Just looger.warning should be enough?

Copy link
Member

@jolevesq jolevesq left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 3 files at r4.
Reviewable status: 5 of 7 files reviewed, 1 unresolved discussion (waiting on @Alex-NRCan)

@DamonU2 DamonU2 force-pushed the 2593-feature-info-errors branch from 6dff860 to c3abc28 Compare December 10, 2024 15:00
@DamonU2 DamonU2 force-pushed the 2593-feature-info-errors branch from c3abc28 to 88085a1 Compare December 10, 2024 15:02
Copy link
Member Author

@DamonU2 DamonU2 left a comment

Choose a reason for hiding this comment

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

Reviewable status: 5 of 7 files reviewed, 1 unresolved discussion (waiting on @Alex-NRCan and @jolevesq)


packages/geoview-core/src/geo/layer/gv-layers/abstract-gv-layer.ts line 255 at r1 (raw file):

Previously, jolevesq (Johann Levesque) wrote…

GV need to be capitalize letter.... Do we want logger.error? Just looger.warning should be enough?

Done. Small gv actually works the same.

Copy link
Member

@jolevesq jolevesq left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 3 files at r4, 1 of 1 files at r5, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @DamonU2)

Copy link
Member

@jolevesq jolevesq left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @DamonU2)

@jolevesq jolevesq merged commit 7fb9bb5 into Canadian-Geospatial-Platform:develop Dec 10, 2024
5 of 6 checks passed
@DamonU2 DamonU2 deleted the 2593-feature-info-errors branch December 10, 2024 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants