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

After upgrading to 9.0.3 /api/audit-logging/settings-widgets/audit-log-setting-group showing up in OpanAPI definition #21979

Open
1 task done
jasenf opened this issue Jan 23, 2025 · 2 comments
Assignees
Milestone

Comments

@jasenf
Copy link

jasenf commented Jan 23, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Description

I've been integrating Scalar as a Swagger replacement, and just started getting this in my definition file after upgrading:

Image

Its the only apb internal method that has ever shown up or that I have seen, so I think a decorator or something may be missing.

Reproduction Steps

No response

Expected behavior

No response

Actual behavior

No response

Regression?

No response

Known Workarounds

No response

Version

9.0.3

User Interface

MVC

Database Provider

EF Core (Default)

Tiered or separate authentication server

None (Default)

Operation System

Windows (Default)

Other information

No response

@jasenf jasenf added the bug label Jan 23, 2025
@maliming
Copy link
Member

maliming commented Jan 24, 2025

hi

The AuditLogSettingGroupViewComponent introduced after >=8.2

I will see if we can hide it from OpenAPI.

@maliming maliming removed the bug label Jan 24, 2025
@maliming maliming added this to the 9.2-preview milestone Jan 24, 2025
@maliming maliming self-assigned this Jan 24, 2025
@maliming
Copy link
Member

hi

You can override the AuditLoggingSettingsWidgetController and add [ApiExplorerSettings(IgnoreApi = true)] attribute.

[Route("api/audit-logging/settings-widgets")]
[RemoteService(false)]
[ApiExplorerSettings(IgnoreApi = true)]
public class AuditLoggingSettingsWidgetController : AbpController
{
    [HttpGet]
    [Route("audit-log-setting-group")]
    public IActionResult GetAuditLogSettingGroup()
    {
        return ViewComponent(typeof(AuditLogSettingGroupViewComponent));
    }
}

@maliming maliming modified the milestones: 9.2-preview, 9.1-final Jan 24, 2025
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