Skip to content

Conversation

@LucienShui
Copy link
Contributor

@LucienShui LucienShui commented Apr 24, 2025

  1. Migrate wizard's logic from tasks into wizard.
  2. Create index task after resource created or updated in resource service.
  3. Support index's create, update, delete.

@LucienShui LucienShui marked this pull request as ready for review April 24, 2025 02:39
Copy link
Contributor

Copilot AI left a 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 PR migrates the wizard’s logic from the tasks service into a dedicated wizard service and controller, while also adding indexing functionality after resource creation/updating. Key changes include:

  • Introducing new wizard endpoints (collect, fetch, callback) and corresponding service methods.
  • Removing the task-related wizard logic from TasksService and its controllers.
  • Updating ResourcesService to trigger index creation and deletion on resource create/update/delete.

Reviewed Changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/wizard/wizard.service.ts Implements new wizard functions (collect, fetch, taskDoneCallback).
src/wizard/wizard.module.ts Registers wizard components and related dependencies.
src/wizard/wizard.controller.ts Exposes the public wizard API endpoint for collecting data.
src/wizard/internal.wizard.controller.ts Exposes internal endpoints for task fetching and callback handling.
src/tasks/tasks.service.ts Removes obsolete wizard-related functions from tasks service.
src/tasks/tasks.module.ts Cleans up controller imports by removing internal tasks controller.
src/resources/resources.service.ts Adds indexing call after resource creation/updating and deletes index on deletion.
src/resources/resources.module.ts Includes Task entity for index operations.
src/app/app.module.ts Imports the new WizardModule.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

@hewenguang hewenguang left a comment

Choose a reason for hiding this comment

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

/lgtm

@hewenguang hewenguang merged commit 5c8e06d into node Apr 24, 2025
@LucienShui LucienShui deleted the feature/index branch April 24, 2025 02:44
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.

3 participants