apache / incubator-answer

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
https://answer.apache.org
Apache License 2.0
12.53k stars 944 forks source link

installing plugins will reset UI to default and not reflect already present changes made #1055

Open ionics opened 1 month ago

ionics commented 1 month ago

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior:

  1. ./answer init -C answer-data/
  2. ./answer run -C answer-data/ => UI changes still present ✅ This is what we want.
  3. Install plugin via cmd: ./answer build --with github.com/apache/incubator-answer-plugins/search-elasticsearch --with github.com/apache/incubator-answer-plugins/cache-redis
  4. Restart app: ./answer run -C answer-data/ => Plugins got installed, but UI changes lost and set to default. 💥

Installing plugins will reset UI to default.

Expected behavior

Installing plugins should not reset UI to default.

Platform

Distributor ID: Ubuntu Description: Ubuntu 22.04.4 LTS Release: 22.04 Codename: jammy

answer version 1.3.5 revision: 3ce69256 build time: 1721985092

LinkinStars commented 1 month ago

@ionics In step3, you can try to use ANSWER_MODULE=/your-local-answer-source-code-path/incubator-answer ./answer build --with .....

It will use your local code instead of the remote code to build.

zahash commented 2 weeks ago

@LinkinStars what remote code? also, @ionics can you describe what UI changes you made?

LinkinStars commented 2 weeks ago

@LinkinStars what remote code? also, @ionics can you describe what UI changes you made?

The remote code is the code that in github repo. Setting the ANSWER_MODULE environment variable allows the user to compile the plugin from local code. Because this user has modified the local UI code, it needs to be built from local.