Skip to content

Conversation

@lu-yg
Copy link
Collaborator

@lu-yg lu-yg commented Sep 18, 2025

English | 简体中文

PR

PR Checklist

Please check if your PR fulfills the following requirements:

  • The commit message follows our Commit Message Guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • Built its own designer, fully self-validated

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

Background and solution

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Summary by CodeRabbit

  • New Features

    • Thumbnails supported for resources, with dedicated thumbnail URLs.
    • Uploads now auto-generate image and thumbnail names; links are path-based.
    • Resources display inline by default; certain names trigger download.
  • Refactor

    • Download endpoint changed to /resource/download/{name}; query parameters removed and name inferred from path.
  • Chores

    • Database schema updated: new required thumbnail_name column for resources (H2/MySQL). Apply migrations before upgrading.

@coderabbitai
Copy link

coderabbitai bot commented Sep 18, 2025

Caution

Review failed

The pull request is closed.

✨ Finishing touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6329922 and 629eca3.

📒 Files selected for processing (9)
  • app/src/main/resources/sql/h2/create_resources_ddl_2025_0902.sql (1 hunks)
  • app/src/main/resources/sql/mysql/create_resources_ddl_2025_0902.sql (1 hunks)
  • base/src/main/java/com/tinyengine/it/common/utils/Utils.java (2 hunks)
  • base/src/main/java/com/tinyengine/it/controller/ResourceController.java (2 hunks)
  • base/src/main/java/com/tinyengine/it/model/entity/Resource.java (1 hunks)
  • base/src/main/java/com/tinyengine/it/service/material/impl/ResourceServiceImpl.java (4 hunks)
  • base/src/main/resources/mappers/ResourceGroupMapper.xml (4 hunks)
  • base/src/main/resources/mappers/ResourceMapper.xml (6 hunks)
  • docker-deploy-data/mysql/init/create_resources_ddl_2025_0902.sql (1 hunks)

Tip

👮 Agentic pre-merge checks are now available in preview!

Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.

  • Built-in checks – Quickly apply ready-made checks to enforce title conventions, require pull request descriptions that follow templates, validate linked issues for compliance, and more.
  • Custom agentic checks – Define your own rules using CodeRabbit’s advanced agentic capabilities to enforce organization-specific policies and workflows. For example, you can instruct CodeRabbit’s agent to verify that API documentation is updated whenever API schema files are modified in a PR. Note: Upto 5 custom checks are currently allowed during the preview period. Pricing for this feature will be announced in a few weeks.

Please see the documentation for more information.

Example:

reviews:
  pre_merge_checks:
    custom_checks:
      - name: "Undocumented Breaking Changes"
        mode: "warning"
        instructions: |
          Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).

Please share your feedback with us on this Discord post.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@lu-yg lu-yg merged commit d5d7307 into opentiny:develop Sep 18, 2025
1 check passed
lu-yg added a commit to lu-yg/tiny-engine-backend-java that referenced this pull request Oct 23, 2025
* feat: add resource API

* fix: modify source API

* fix: modify source API

* fix: modify source API

* fix: modify source API

* fix: modify source API

* fix: modify source API

* fix: modify source API

* fix: modify source API

* fix: modify source API

* feat: add scheduled tasks

* fix: modify resource download

* fix: modify resource group update

* fix: modify resource group update

* fix: modify resource group update

* fix: modify resource download

* fix: modify block group

* fix: modify AI chat

* fix: modify AI chat

* fix: modify AI chat

* fix: modify AI chat

* fix: modify AI chat

* fix: modify AI chat

* fix: modify AI chat

* fix: modify resource upload

* fix: modify resource upload

* fix: modify resource upload

* fix: modify resource upload

* fix: modify resource upload

* fix: modify resource upload

* fix: modify resource upload

* fix: modify resource download
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.

2 participants