-
Notifications
You must be signed in to change notification settings - Fork 0
chore: modify some conflicts files #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: feat-666
Are you sure you want to change the base?
Conversation
* docs: Rename FastExcel to FesodSheet * docs: rename documentation files and update content for * docs: update terminology from Excel to spreadsheet --------- Co-authored-by: Shuxin Pan <[email protected]>
…omprehensive tests for date formatting (apache#610) * refactor: remove deprecated format field from ExcelProperty and add comprehensive tests for date formatting * style: add license header to ExcelPropertyFormatTest.java * refactor: clean up import statements in ExcelPropertyFormatTest.java for clarity and consistency * refactor: update sheet names and comments in ExcelPropertyFormatTest.java for clarity --------- Co-authored-by: DeleiGuo <[email protected]> Co-authored-by: Shuxin Pan <[email protected]>
# Conflicts: # website/docs/sheet/help/parameter.md # website/i18n/zh-cn/docusaurus-plugin-content-docs/current/sheet/help/parameter.md
Summary of ChangesHello @psxjoy, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request primarily focuses on a comprehensive refactoring and rebranding effort for the project's spreadsheet handling capabilities. It involves removing deprecated date formatting methods, introducing a new test suite for annotation-based date/time formatting, and extensively updating the documentation. The core changes include renaming classes and dependencies from 'FastExcel' to 'FesodSheet' and 'Fesod' to align with a broader 'spreadsheet' focus, along with corresponding updates in code examples and build configurations to reflect these new names and structure. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request is a large-scale refactoring effort, primarily focused on renaming the project from FastExcel to Fesod and FesodSheet. It also involves updating documentation to use more generic terms like 'spreadsheet' instead of 'Excel'. The changes are extensive, including file renames, path updates in configuration files, and content modifications across numerous documentation files. The refactoring appears to be consistent and well-executed for the most part. However, I've identified a few areas for improvement in the newly added test file, ExcelPropertyFormatTest.java, where the deprecated FastExcel class is still in use, and some unused code has been included. My specific feedback is provided in the comments below.
| FastExcel.write(fileName, ChinesePatternSample.class) | ||
| .sheet("ChineseFormat") | ||
| .doWrite(Collections.singletonList(sample)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As part of the project's renaming, the deprecated FastExcel class should be replaced with FesodSheet for consistency.
| FastExcel.write(fileName, ChinesePatternSample.class) | |
| .sheet("ChineseFormat") | |
| .doWrite(Collections.singletonList(sample)); | |
| FesodSheet.write(fileName, ChinesePatternSample.class) | |
| .sheet("ChineseFormat") | |
| .doWrite(Collections.singletonList(sample)); |
| s.setDateDash(LocalDate.of(2024, 12, 31)); | ||
| s.setDateTimeMinute(LocalDateTime.of(2025, 3, 4, 15, 20)); | ||
| String file = tempDir.resolve("multi_pattern.xlsx").toString(); | ||
| FastExcel.write(file, MultiPatternSample.class).sheet("MultiFormat").doWrite(Collections.singletonList(s)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To align with the new project naming conventions, please replace the usage of the deprecated FastExcel class with FesodSheet.
| FastExcel.write(file, MultiPatternSample.class).sheet("MultiFormat").doWrite(Collections.singletonList(s)); | |
| FesodSheet.write(file, MultiPatternSample.class).sheet("MultiFormat").doWrite(Collections.singletonList(s)); |
| /** | ||
| * Write Date with pattern, read to String field with annotation pattern, verify the read string matches the formatted value. | ||
| */ | ||
| @Data | ||
| static class WriteDateModel { | ||
| @ExcelProperty | ||
| @DateTimeFormat("yyyy-MM-dd HH:mm:ss") | ||
| private Date eventTime; | ||
| } | ||
|
|
||
| @Data | ||
| static class ReadStringModel { | ||
| @ExcelProperty | ||
| @DateTimeFormat("yyyy-MM-dd HH:mm:ss") | ||
| private String eventTime; // Should be formatted as string when reading | ||
| } | ||
|
|
||
| static class CapturingListener implements ReadListener<ReadStringModel> { | ||
| private final List<ReadStringModel> list = new ArrayList<>(); | ||
|
|
||
| @Override | ||
| public void invoke(ReadStringModel data, AnalysisContext context) { | ||
| list.add(data); | ||
| } | ||
|
|
||
| @Override | ||
| public void doAfterAllAnalysed(AnalysisContext context) {} | ||
|
|
||
| List<ReadStringModel> getList() { | ||
| return list; | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| public void testNullDateFieldWritesBlank(@TempDir Path tempDir) throws IOException { | ||
| NullDateSample sample = new NullDateSample(); | ||
| String file = tempDir.resolve("null_date.xlsx").toString(); | ||
| FastExcel.write(file, NullDateSample.class).sheet("Null").doWrite(Collections.singletonList(sample)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update this call to use FesodSheet instead of the deprecated FastExcel class, in line with the project's refactoring.
| FastExcel.write(file, NullDateSample.class).sheet("Null").doWrite(Collections.singletonList(sample)); | |
| FesodSheet.write(file, NullDateSample.class).sheet("Null").doWrite(Collections.singletonList(sample)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request performs a comprehensive migration from "FastExcel" to "Fesod" (Apache Fesod Incubating) across the entire codebase, including documentation, code examples, and configuration files. The changes reflect the project's transition to the Apache Software Foundation.
Key changes:
- Renamed all references from
FastExceltoFesodSheetin code examples and documentation - Updated package identifiers from
cn.idev.exceltoorg.apache.fesod - Reorganized documentation structure with new "fesod-sheet" category
- Updated terminology from "Excel" to "spreadsheet" throughout documentation
- Removed deprecated
formatattribute from@ExcelPropertyannotation - Added comprehensive test coverage for annotation formatting
Reviewed Changes
Copilot reviewed 76 out of 76 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| website/src/pages/index.js | Updated GitHub repository link from fast-excel to apache/fesod |
| website/src/css/custom.css | Added new announcement bar styling with themed colors |
| website/sidebars.js | Restructured sidebar to group read/write/fill/help under new "fesod-sheet" category |
| website/i18n/zh-cn/docusaurus-plugin-content-docs/current/sheet/**/*.md | Updated all Chinese documentation with FesodSheet naming and spreadsheet terminology |
| website/docs/sheet/**/*.md | Updated all English documentation with FesodSheet naming and spreadsheet terminology |
| website/i18n/zh-cn/docusaurus-plugin-content-docs/current/quickstart/*.md | Updated quickstart guides with new package coordinates and terminology |
| website/docs/quickstart/*.md | Updated English quickstart guides with new package coordinates |
| website/i18n/*/code.json | Updated localized strings to use "spreadsheet" instead of "Excel" |
| website/i18n/*/docusaurus-plugin-content-docs/current.json | Added "fesod-sheet" category labels |
| fesod/src/main/java/org/apache/fesod/sheet/annotation/ExcelProperty.java | Removed deprecated format() attribute |
| fesod/src/test/java/org/apache/fesod/sheet/annotation/ExcelPropertyFormatTest.java | Added comprehensive tests for date/time format annotations |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Purpose of the pull request
What's changed?
Checklist