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 #7903

Open
louagej opened this issue Nov 14, 2024 · 0 comments

Comments

@louagej
Copy link

louagej commented Nov 14, 2024

Problem description

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants