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

Relationship info route handler is missing default data #545

Open
efbenson opened this issue Apr 4, 2023 · 2 comments
Open

Relationship info route handler is missing default data #545

efbenson opened this issue Apr 4, 2023 · 2 comments
Labels
bug LOE: medium Level Of Effort: medium

Comments

@efbenson
Copy link

efbenson commented Apr 4, 2023

const { layerMetadata: layerMetadataDefaults, renderers: rendererDefaults } = require('./defaults');

When trying to implement related table I ran into this roadblock, the defaults for layers and renderers are missing. You can get around it partially by specifying the renderer, but the code for capabilities requires the defaults:

capabilities: extract ? `${layerMetadataDefaults.capabilities},Extract` : layerMetadataDefaults.capabilities

Even when I hack together something that works the output doesn't match https://developers.arcgis.com/rest/services-reference/enterprise/relationships-feature-service-.htm unless I am missing something.

@efbenson
Copy link
Author

For what it's worth I was able to get related tables working in AGOL without this endpoint

@rgwozdz
Copy link
Member

rgwozdz commented Apr 10, 2023

const { layerMetadata: layerMetadataDefaults, renderers: rendererDefaults } = require('./defaults');

When trying to implement related table I ran into this roadblock, the defaults for layers and renderers are missing. You can get around it partially by specifying the renderer, but the code for capabilities requires the defaults:

capabilities: extract ? `${layerMetadataDefaults.capabilities},Extract` : layerMetadataDefaults.capabilities

Even when I hack together something that works the output doesn't match https://developers.arcgis.com/rest/services-reference/enterprise/relationships-feature-service-.htm unless I am missing something.

Thanks @efbenson for documenting this; this will help determine upcoming priorities.

@rgwozdz rgwozdz added LOE: medium Level Of Effort: medium and removed roadmap candidate labels Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug LOE: medium Level Of Effort: medium
Projects
None yet
Development

No branches or pull requests

2 participants