Skip to content

Conversation

@andreichirila0712
Copy link
Contributor

@andreichirila0712 andreichirila0712 commented Jan 18, 2025

Renamed the schema class PreTranslateEfficiencyGenerateReportRequest.java to PreTranslateAccuracyGenerateReportRequest.java.
Deprecated the old class to maintain backward compatibility.
The old class now extends the new one, so both functionalities (of old and new class) are available.
No functionality was changed, just updated the schema name.

Updated test in com/crowdin/client/reports/ReportsApiTest.java to reflect the new schema and naming as requested in the feedback provided.
Modified the following resources files:

  • resources/api/reports/preTranslateEfficiencyReportStatus.json
  • resources/api/reports/generatePreTranslateEfficiencyReport.json

The changes were made to ensure consistency with the new schema and naming.
All tests passed successfully after the changes were made.

@andreichirila0712 andreichirila0712 changed the title Fix/deprecate old schema refactor: deprecate old schema Jan 18, 2025
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.90%. Comparing base (2f9f6a1) to head (cccd923).
Report is 9 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #305      +/-   ##
============================================
+ Coverage     93.89%   93.90%   +0.01%     
- Complexity      781      782       +1     
============================================
  Files           189      190       +1     
  Lines          2567     2570       +3     
  Branches         53       53              
============================================
+ Hits           2410     2413       +3     
  Misses          132      132              
  Partials         25       25              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@andrii-bodnar
Copy link
Member

@andreichirila0712 thank you for the contribution!

Please update the com/crowdin/client/reports/ReportsApiTest.java tests to use the new schema and naming.

There are also some resource files that need to be updated:

  • resources/api/reports/preTranslateEfficiencyReportStatus.json
  • resources/api/reports/generatePreTranslateEfficiencyReport.json

Copy link
Member

@andrii-bodnar andrii-bodnar left a comment

Choose a reason for hiding this comment

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

@andreichirila0712 thank you!

@andrii-bodnar andrii-bodnar merged commit af71abc into crowdin:master Jan 20, 2025
3 checks passed
@andreichirila0712 andreichirila0712 deleted the fix/deprecate-old-schema branch December 9, 2025 10:38
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.

Rename report schema: Pre-Translate Efficiency -> Pre-Translate Accuracy

3 participants