Skip to content

Bugfix/228 update feature with invalid planningstatus results in 500#40

Closed
YuliaMittova wants to merge 21 commits intofeature-tracker:mainfrom
dpaia:bugfix/228-update-feature-with-invalid-planningstatus-results-in-500
Closed

Bugfix/228 update feature with invalid planningstatus results in 500#40
YuliaMittova wants to merge 21 commits intofeature-tracker:mainfrom
dpaia:bugfix/228-update-feature-with-invalid-planningstatus-results-in-500

Conversation

@YuliaMittova
Copy link
Copy Markdown

Bugfix for issue dpaia#228

zaharchenko-evgeny and others added 20 commits July 16, 2025 18:31
…management-20250726184714

Add workflow: pr-label-management.yml
…-2-20250813081805

Add files: maven.yml,verify_java_dataset_instance.sh
fix: don't delete features when deleting a release
…74.0

Current configuration yields `NoSuchMethodError` upon compilation when using java 25,
which is now fixed in `palantir-java-format:2.71.0`:
palantir/palantir-java-format#1305

That only change would be sufficient, but I updated the palantir version to `2.74.0`
and also the spotless plugin to `3.0.0` to comply with this change in the original repo:
feature-tracker@1e2fca6

Also fixes readme that still mentioned java 21 as prerequisite, when in fact it is now java 24.
…74.0

- merge pull request #149 from dpaia/update-spotless-plugin-version
needed in tests for issue 58
### Objective
Define and implement enhanced data structures for feature planning assignments with basic API enhancements, ensuring correct database storage and immediate testability through existing endpoints.

### Requirements

**Feature Entity Enhancement:** Add planning fields to the Feature entity: `plannedCompletionAt`, `actualCompletionAt`, `featurePlanningStatus`, `featureOwner`, `blockageReason`.

**FeaturePlanningStatus Enum:** Create a new enum with values: NOT_STARTED, IN_PROGRESS, DONE, BLOCKED (separate from existing development status).

**Enhance Existing API Endpoints:**
- PUT /api/features/{code} - Update payload with planning fields
- GET /api/features/{code} - Include all planning fields in response
- GET /api/releases/{code}/features - Return features with planning fields

### Test Coverage
- Unit tests for Feature entity with new planning fields
- Integration tests for database persistence (CRUD operations)
- Integration tests for enhanced API endpoints
- Tests for database constraints and indexes

### Acceptance Criteria
- Feature entity enhanced with all planning fields and database migration completed
- FeaturePlanningStatus enum created with proper values
- Database schema includes all necessary columns and indexes
- DTOs include all planning fields
- Existing endpoints work with new planning fields
- Planning fields can be updated and retrieved
- All repository methods implemented and tested
- End-to-end integration tests verify API-to-database flow

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@innokenty
Copy link
Copy Markdown

your target branch should be toloka-agent/124-auto

FAIL_TO_PASS: FeatureControllerTests#shouldReturnBadRequestForInvalidFeaturePlanningStatus, FeatureControllerTests#shouldReturnBadRequestForBlankFeaturePlanningStatus, FeatureControllerTests#shouldReturnBadRequestForEmptyFeaturePlanningStatus
@YuliaMittova YuliaMittova force-pushed the bugfix/228-update-feature-with-invalid-planningstatus-results-in-500 branch from 9423f12 to 75a1602 Compare March 24, 2026 21:07
@YuliaMittova
Copy link
Copy Markdown
Author

Closed because correct PR is created: dpaia#271

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.

6 participants