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

[Bug]: API page not getting published if it contains a field of type Enum that has the same Name as another API Page that holds this as EntityName #2362

Closed
louagej opened this issue Nov 14, 2024 · 2 comments
Assignees
Labels
Contribution-Bug Something isn't working in the contribution process Follow Up The issue has an open question and must be followed up on

Comments

@louagej
Copy link

louagej commented Nov 14, 2024

Describe the issue

If you have an EntityName on an API page (within the same APIGroup) that matches a field of type Enum on another page, then that page on which the Enum field is located will not be published.
Below is a screenshot of 2 pages in that same repo from standard BC tables (find code in the public repo louagej/apicase).

Image

When you publish page 62001 with EntityName itemTypes, Page 62002 jobItems is no longer available as an API page.
When you publish page 62001 with EntityName itemVariant, Page 62002 jobItems is available again as an API page.
When you publish page 62001 with EntityName itemTypes and APIGroup mySecondGroup, Page 62002 jobItems is also available as an API page.

Expected behavior

The API Page should be published, even in the same API Group

Steps to reproduce

You can find code in the public repo louagej/apicase.
Publish the app to a BC environment and test the API endpoints

Additional context

No response

@louagej louagej added the Contribution-Bug Something isn't working in the contribution process label Nov 14, 2024
@louagej louagej changed the title [Bug]: API page not getting published if it contains a field of type Enum that has the same Name as another API Page that golds this as EntityName [Bug]: API page not getting published if it contains a field of type Enum that has the same Name as another API Page that holds this as EntityName Nov 14, 2024
@JesperSchulz
Copy link
Contributor

This doesn't strike me as something you can fix yourself in the BCApps repo?

If you would like Microsoft to address the issue, please create a support request. Learn more about our support channels here: https://aka.ms/bcsupport.

@JesperSchulz JesperSchulz added the Follow Up The issue has an open question and must be followed up on label Nov 14, 2024
@JesperSchulz JesperSchulz self-assigned this Nov 14, 2024
@louagej
Copy link
Author

louagej commented Nov 14, 2024

Indeed, this is not something to be solved by BCApps.
Filed the issue at AL-Repo: MS AL Issue 7903

@louagej louagej closed this as completed Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Contribution-Bug Something isn't working in the contribution process Follow Up The issue has an open question and must be followed up on
Projects
None yet
Development

No branches or pull requests

2 participants