Skip to content

refactor: fix redundant ops and wasteful patterns (issue #28)#41

Merged
MagPasulke merged 5 commits into
mainfrom
refactor/fix-inefficiencies-issue-28
May 24, 2026
Merged

refactor: fix redundant ops and wasteful patterns (issue #28)#41
MagPasulke merged 5 commits into
mainfrom
refactor/fix-inefficiencies-issue-28

Conversation

@MagPasulke
Copy link
Copy Markdown
Owner

Closes #28

Changes

1. Remove redundant to_upper from resolver callers

check_implements internally normalizes — callers in resolver classes no longer need to duplicate this.

2. Guard JSON deserialization for POST only

GET requests have no body; deserialization now only runs when method is POST.

3. Replace IF/ELSE DI pattern with COND #() in interpreter constructor

Three repetitive IF/ELSE blocks replaced with inline COND expressions, consistent with factory class style.


⚠️ Please sync to SAP system via abapGit and run ABAP Unit tests before merging.

- Remove redundant to_upper() calls from resolver callers; check_implements
  owns normalization internally via CONV string()
- Guard JSON deserialization behind POST check; GET requests have no body
- Replace verbose IF/ELSE DI blocks with COND #() in interpreter constructor

Closes #28
@MagPasulke MagPasulke marked this pull request as ready for review May 24, 2026 19:40
- Version bump 0.2.1 -> 0.2.2 (patch: refactors + style fixes)
- AGENTS.md: grill-me now invoked before branch creation on intent signal
- AGENTS.md: version bump step added before session summary
@MagPasulke MagPasulke merged commit e26271e into main May 24, 2026
1 check passed
@MagPasulke MagPasulke deleted the refactor/fix-inefficiencies-issue-28 branch May 24, 2026 19:51
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.

Inefficiencies: Redundant operations and wasteful patterns

1 participant