You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by li...@apache.org on 2023/12/07 03:08:33 UTC
(incubator-answer) branch dev updated (1a7cbb78 -> d7136ba0)
This is an automated email from the ASF dual-hosted git repository.
linkinstar pushed a change to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
from 1a7cbb78 docs(swagger): update swagger docs
new 088585e5 docs(image): rename all docker image name to apache/answer
new b72058d1 fix: can't show tag description in tag edit page (#664)
new d7136ba0 fix: timeline page sort error
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
README.md | 2 +-
charts/README.md | 6 +++---
charts/values.yaml | 2 +-
docker-compose.yaml | 2 +-
internal/repo/activity/activity_repo.go | 2 +-
ui/src/pages/Tags/Edit/index.tsx | 14 ++++++++------
6 files changed, 15 insertions(+), 13 deletions(-)
(incubator-answer) 03/03: fix: timeline page sort error
Posted by li...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
linkinstar pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
commit d7136ba0c99ef6b39926dc11b9345dfac98a048c
Author: sy-records <52...@qq52o.cn>
AuthorDate: Wed Dec 6 13:24:53 2023 +0800
fix: timeline page sort error
---
internal/repo/activity/activity_repo.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/internal/repo/activity/activity_repo.go b/internal/repo/activity/activity_repo.go
index 14ffa065..d41f0071 100644
--- a/internal/repo/activity/activity_repo.go
+++ b/internal/repo/activity/activity_repo.go
@@ -52,7 +52,7 @@ func NewActivityRepo(
func (ar *activityRepo) GetObjectAllActivity(ctx context.Context, objectID string, showVote bool) (
activityList []*entity.Activity, err error) {
activityList = make([]*entity.Activity, 0)
- session := ar.data.DB.Context(ctx).Desc("created_at")
+ session := ar.data.DB.Context(ctx).Desc("id")
if !showVote {
activityTypeNotShown := ar.getAllActivityType(ctx)
(incubator-answer) 02/03: fix: can't show tag description in tag edit page (#664)
Posted by li...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
linkinstar pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
commit b72058d1f60af5c9bac81e219245909b916720c5
Author: Han Gao <dh...@hotmail.com>
AuthorDate: Thu Nov 30 14:42:09 2023 +0800
fix: can't show tag description in tag edit page (#664)
fix #637 .
---
ui/src/pages/Tags/Edit/index.tsx | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/ui/src/pages/Tags/Edit/index.tsx b/ui/src/pages/Tags/Edit/index.tsx
index c1f51487..c737353c 100644
--- a/ui/src/pages/Tags/Edit/index.tsx
+++ b/ui/src/pages/Tags/Edit/index.tsx
@@ -70,9 +70,6 @@ const Index = () => {
const { data } = useTagInfo({ id: tagId });
const { data: revisions = [] } = useQueryRevisions(data?.tag_id);
- initFormData.displayName.value = data?.display_name || '';
- initFormData.slugName.value = data?.slug_name || '';
- initFormData.description.value = data?.original_text || '';
const [formData, setFormData] = useState<FormDataItem>(initFormData);
const [immData, setImmData] = useState(initFormData);
const [contentChanged, setContentChanged] = useState(false);
@@ -85,6 +82,14 @@ const Index = () => {
when: contentChanged,
});
+ useEffect(() => {
+ initFormData.displayName.value = data?.display_name || '';
+ initFormData.slugName.value = data?.slug_name || '';
+ initFormData.description.value = data?.original_text || '';
+ setFormData(initFormData);
+ setImmData(initFormData);
+ }, [data]);
+
useEffect(() => {
const { displayName, slugName, description, editSummary } = formData;
const {
@@ -92,9 +97,6 @@ const Index = () => {
slugName: slug_name,
description: original_text,
} = immData;
- if (!display_name || !slug_name || !original_text) {
- return;
- }
if (
display_name.value !== displayName.value ||
(incubator-answer) 01/03: docs(image): rename all docker image name to apache/answer
Posted by li...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
linkinstar pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
commit 088585e5d59182baa8b5824866f647e60babee2d
Author: LinkinStars <li...@foxmail.com>
AuthorDate: Wed Nov 29 17:20:24 2023 +0800
docs(image): rename all docker image name to apache/answer
---
README.md | 2 +-
charts/README.md | 6 +++---
charts/values.yaml | 2 +-
docker-compose.yaml | 2 +-
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/README.md b/README.md
index bb401abd..9017369a 100644
--- a/README.md
+++ b/README.md
@@ -23,7 +23,7 @@ To learn more about the project, visit [answer.apache.org](https://answer.apache
### Running with docker
```bash
-docker run -d -p 9080:80 -v answer-data:/data --name answer answerdev/answer:latest
+docker run -d -p 9080:80 -v answer-data:/data --name answer apache/answer:latest
```
For more information, see [Installation](https://answer.apache.org/docs/installation)
diff --git a/charts/README.md b/charts/README.md
index eeb49d35..26cd6a9c 100644
--- a/charts/README.md
+++ b/charts/README.md
@@ -11,7 +11,7 @@ The following table lists the configurable parameters of the answer chart and th
| Parameter | Description | Default |
| --------- | ----------- | ------- |
| `replicaCount` | Number of answer replicas | `1` |
-| `image.repository` | Image repository | `answerdev/answer` |
+| `image.repository` | Image repository | `apache/answer` |
| `image.pullPolicy` | Image pull policy | `Always` |
| `image.tag` | Image tag | `latest` |
| `env` | Optional environment variables for answer | `LOG_LEVEL: INFO` |
@@ -69,7 +69,7 @@ Publish the chart to Artifacthub and add proper installation instructions. E.G.
> **NOTE**: This is not currently a valid installation option.
```console
-$ helm repo add answerdev https://charts.answer.apache.org/
+$ helm repo add apache https://charts.answer.apache.org/
$ helm repo update
-$ helm install answerdev/answer -n mynamespace
+$ helm install apache/answer -n mynamespace
```
\ No newline at end of file
diff --git a/charts/values.yaml b/charts/values.yaml
index 8b6fe999..c7a9c20d 100644
--- a/charts/values.yaml
+++ b/charts/values.yaml
@@ -22,7 +22,7 @@
replicaCount: 1
image:
- repository: answerdev/answer
+ repository: apache/answer
pullPolicy: Always
# Overrides the image tag whose default is the chart appVersion.
tag: "latest"
diff --git a/docker-compose.yaml b/docker-compose.yaml
index 03a670f1..58e8ea03 100644
--- a/docker-compose.yaml
+++ b/docker-compose.yaml
@@ -18,7 +18,7 @@
version: "3"
services:
answer:
- image: answerdev/answer
+ image: apache/answer
ports:
- '9080:80'
restart: on-failure