Skip to content

Complete removal of /api/staff/ and /api/users/ API implementations#16

Merged
Atsumi3 merged 10 commits intomainfrom
devin/1759137313-remove-staff-users-api
Oct 3, 2025
Merged

Complete removal of /api/staff/ and /api/users/ API implementations#16
Atsumi3 merged 10 commits intomainfrom
devin/1759137313-remove-staff-users-api

Conversation

@devin-ai-integration
Copy link
Contributor

Complete removal of /api/staff/ and /api/users/ API implementations

Summary

This PR completely removes the /api/staff/ and /api/users/ API implementations from KidsPOS-Server, including all related code, database schema updates, and frontend components. Both APIs were duplicates that used the same StaffService and are no longer needed.

Key Changes:

  • 🗑️ Removed 15 files including controllers, services, entities, DTOs, and tests
  • 📝 Modified 33 files to remove staff dependencies and references
  • 🗄️ Updated database schema to remove staffId from sale table and staff table entirely
  • 🧾 Simplified receipt generation to work without staff information
  • 🧪 Updated all test cases to remove staff-related assertions and mocks

The sales processing logic has been simplified to work without staff barcodes, and receipt printing no longer includes staff names.

Review & Testing Checklist for Human

Critical items to verify (5 items):

  • End-to-end sales flow works without staff information - Test creating sales through the API and verify no errors occur
  • Receipt printing generates correctly without staff names - Verify receipts print with store information but exclude staff details
  • No remaining staff references in codebase - Search for "Staff", "staff", "users", "Users" to ensure complete removal
  • Database compatibility - Existing sales data with staffId references won't cause issues (user confirmed no migrations needed)
  • Client application compatibility - Verify that Android client and any other consumers can handle the removed API endpoints gracefully

Notes

  • Session: Requested by Atsumi3 (@Atsumi3) - Devin session
  • Build status: Compilation passes, but tests couldn't run due to Java 21 toolchain requirement
  • Risk level: 🟠 Medium-High - Significant API and database schema changes affecting core sales functionality
  • Breaking change: Yes - clients using /api/staff/ or /api/users/ endpoints will need updates

…ions

- Remove all staff-related API controllers (StaffApiController, UserApiController)
- Delete staff service layer (StaffService, StaffRepository)
- Remove staff entity and DTOs (StaffEntity, CreateStaffRequest, StaffResponse)
- Update SaleEntity to remove staffId dependency
- Remove staff table from database schema (V000__create_tables.sql)
- Update all sale processing services to remove staff barcode handling
- Remove staff management frontend (StaffsController, templates)
- Clean up all test files and remove staff-related test cases
- Update API specification (api.yaml) to remove staff/users endpoints
- Fix all compilation errors and ktlint formatting issues

Both /api/staff/ and /api/users/ APIs were duplicates using the same StaffService
and are no longer needed. Sales processing now works without staff references.

Co-Authored-By: Atsumi3 <atsumi@mail.bizen.jp>
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@github-actions
Copy link
Contributor

🎨 Visual Regression Test Results

Visual regression tests failed

Some pages have visual differences. Please review the artifacts:

📋 Actions to take:

  1. Download test artifacts
  2. Review the diff images to understand the changes
  3. If changes are intentional, add update-snapshots label to this PR

📊 Test Coverage

  • Desktop (1280x720)
  • Tablet (iPad)
  • Mobile (iPhone 13)

Co-Authored-By: Atsumi3 <atsumi@mail.bizen.jp>
@github-actions
Copy link
Contributor

🎨 Visual Regression Test Results

Visual regression tests failed

Some pages have visual differences. Please review the artifacts:

📋 Actions to take:

  1. Download test artifacts
  2. Review the diff images to understand the changes
  3. If changes are intentional, add update-snapshots label to this PR

📊 Test Coverage

  • Desktop (1280x720)
  • Tablet (iPad)
  • Mobile (iPhone 13)

@Atsumi3 Atsumi3 added the update-snapshots update vrt label Sep 29, 2025
@Atsumi3 Atsumi3 self-assigned this Sep 29, 2025
@github-actions
Copy link
Contributor

🎨 Visual Regression Test Results

Visual regression tests failed

Some pages have visual differences. Please review the artifacts:

📋 Actions to take:

  1. Download test artifacts
  2. Review the diff images to understand the changes
  3. If changes are intentional, add update-snapshots label to this PR

📊 Test Coverage

  • Desktop (1280x720)
  • Tablet (iPad)
  • Mobile (iPhone 13)

Co-Authored-By: Atsumi3 <atsumi@mail.bizen.jp>
@github-actions github-actions bot removed the update-snapshots update vrt label Sep 29, 2025
@github-actions
Copy link
Contributor

🎨 Visual Regression Test Results

Visual regression tests failed

Some pages have visual differences. Please review the artifacts:

📋 Actions to take:

  1. Download test artifacts
  2. Review the diff images to understand the changes
  3. If changes are intentional, add update-snapshots label to this PR

📊 Test Coverage

  • Desktop (1280x720)
  • Tablet (iPad)
  • Mobile (iPhone 13)

…tests

Co-Authored-By: Atsumi3 <atsumi@mail.bizen.jp>
@github-actions
Copy link
Contributor

🎨 Visual Regression Test Results

Visual regression tests failed

Some pages have visual differences. Please review the artifacts:

📋 Actions to take:

  1. Download test artifacts
  2. Review the diff images to understand the changes
  3. If changes are intentional, add update-snapshots label to this PR

📊 Test Coverage

  • Desktop (1280x720)
  • Tablet (iPad)
  • Mobile (iPhone 13)

…est timeouts

Co-Authored-By: Atsumi3 <atsumi@mail.bizen.jp>
@github-actions
Copy link
Contributor

🎨 Visual Regression Test Results

Visual regression tests failed

Some pages have visual differences. Please review the artifacts:

📋 Actions to take:

  1. Download test artifacts
  2. Review the diff images to understand the changes
  3. If changes are intentional, add update-snapshots label to this PR

📊 Test Coverage

  • Desktop (1280x720)
  • Tablet (iPad)
  • Mobile (iPhone 13)

@github-actions github-actions bot removed the update-snapshots update vrt label Sep 29, 2025
@github-actions
Copy link
Contributor

🎨 Visual Regression Test Results

Visual regression tests failed

Some pages have visual differences. Please review the artifacts:

📋 Actions to take:

  1. Download test artifacts
  2. Review the diff images to understand the changes
  3. If changes are intentional, add update-snapshots label to this PR

📊 Test Coverage

  • Desktop (1280x720)
  • Tablet (iPad)
  • Mobile (iPhone 13)

Co-Authored-By: Atsumi3 <atsumi@mail.bizen.jp>
@github-actions
Copy link
Contributor

🎨 Visual Regression Test Results

Visual regression tests failed

Some pages have visual differences. Please review the artifacts:

📋 Actions to take:

  1. Download test artifacts
  2. Review the diff images to understand the changes
  3. If changes are intentional, add update-snapshots label to this PR

📊 Test Coverage

  • Desktop (1280x720)
  • Tablet (iPad)
  • Mobile (iPhone 13)

@Atsumi3 Atsumi3 added the update-snapshots update vrt label Oct 3, 2025
Atsumi3 and others added 2 commits October 3, 2025 17:00
- 10桁バーコードフォーマットを実装(A + 種別コード(2桁) + ID(6桁) + A)
  - ITEM種別コード: 01
  - 空欄時は自動生成
- フロントエンド入力を6桁のみに簡略化(A01___A形式で表示)
- PDF出力ボタンを修復(CSS display:none ルールを削除)
- PDFダウンロードをfetch + Blob方式に改善
- OpenAPI仕様書からStaff/Users API定義を削除
@github-actions github-actions bot removed the update-snapshots update vrt label Oct 3, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Oct 3, 2025

🎨 Visual Regression Test Results

Visual regression tests failed

Some pages have visual differences. Please review the artifacts:

📋 Actions to take:

  1. Download test artifacts
  2. Review the diff images to understand the changes
  3. If changes are intentional, add update-snapshots label to this PR

📊 Test Coverage

  • Desktop (1280x720)
  • Tablet (iPad)
  • Mobile (iPhone 13)

@Atsumi3 Atsumi3 added the update-snapshots update vrt label Oct 3, 2025
@Atsumi3 Atsumi3 merged commit 019c516 into main Oct 3, 2025
@Atsumi3 Atsumi3 deleted the devin/1759137313-remove-staff-users-api branch October 3, 2025 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant