Skip to content

Simplify control flow and use openapi model accessors - #358

Merged
gab-arrobo merged 1 commit into
omec-project:mainfrom
gab-arrobo:simplify
Oct 13, 2026
Merged

gab-arrobo merged 1 commit into
omec-project:mainfrom
gab-arrobo:simplify

Conversation

@gab-arrobo

Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Arrobo, Gabriel <gabriel.arrobo@intel.com>
@gab-arrobo
gab-arrobo requested review from a team and a balanced review from Copilot October 13, 2026 20:40

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The refactoring preserves behavior and correctly uses the repository’s Go and OpenAPI APIs.

0 open findings

What changed in this PR

Simplifies AUSF control flow and adopts OpenAPI helpers/accessors without changing intended behavior.

Changes:

  • Replaces direct model access with OpenAPI constructors and accessors.
  • Simplifies branching, routing, error creation, and polling backoff.
  • Modernizes random-byte and pointer creation.
File Description
producer/​ue_authentication.go Simplifies authentication flows and model handling.
producer/​callback.go Removes redundant callback branching.
polling/​nf_configuration.go Uses standard min and OpenAPI error helpers.
factory/​factory.go Uses OpenAPI error reporting.
context/​ausf_context_init.go Uses model setters for NF services.
consumer/​nf_management.go Simplifies OpenAPI error model extraction.
consumer/​nf_discovery.go Streamlines subscription creation logic.
callback/​router.go Uses HTTP constants and named route fields.
ausf_test.go Modernizes pointer construction in test data.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@gab-arrobo
gab-arrobo merged commit d333073 into omec-project:main Oct 13, 2026
12 checks passed
@gab-arrobo
gab-arrobo deleted the simplify branch October 13, 2026 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants