Skip to content
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

Release/1.4.0 #1096

Merged
merged 144 commits into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
144 commits
Select commit Hold shift + click to select a range
fa19fe6
fix(update): fix update to v1.3.6
kumfo Jul 25, 2024
46fba3e
docs(docs): remove the images about installation
LinkinStars Jul 30, 2024
fe35d6c
Merge remote-tracking branch 'origin/main' into dev
LinkinStars Jul 30, 2024
9695925
feat(badge): init entity
kumfo Jul 31, 2024
b702294
feat(badge): update entity
kumfo Jul 31, 2024
a4830a4
fix: Update Test_emailRepo_VerifyCode to handle additional parameters
sosyz Jul 31, 2024
95f20c9
feat(badge): update entity
kumfo Jul 31, 2024
dc56fce
feat(badge): init version update
kumfo Aug 1, 2024
37981c1
feat(badge): init badge update data
kumfo Aug 1, 2024
ecbfd61
feat(badge): init badge update data
kumfo Aug 1, 2024
4a07fdb
fix: set last answer ID to zero if no answers
sosyz Aug 1, 2024
80f139e
typo: GetCss swagger annotation content
sosyz Aug 1, 2024
5383b90
perf: optimize search for unanswered questions using answer_count
sosyz Aug 2, 2024
d055507
feat: Add badges to admin
robinv8 Aug 5, 2024
027caa6
Makefile: Wraped with quotes the go location in go variable
EkkoKo Jul 23, 2024
d39c12f
docs(docs): remove the images about installation
LinkinStars Jul 30, 2024
98a2de6
fix: Update Test_emailRepo_VerifyCode to handle additional parameters
sosyz Jul 31, 2024
2167a82
fix: set last answer ID to zero if no answers
sosyz Aug 1, 2024
8762f5b
typo: GetCss swagger annotation content
sosyz Aug 1, 2024
5afa01b
perf: optimize search for unanswered questions using answer_count
sosyz Aug 2, 2024
11fb3aa
Makefile: Wraped with quotes the go location in go variable
EkkoKo Jul 23, 2024
c3a1704
fix: gavatar use sha256 for hash
shuashuai Aug 6, 2024
f0b5859
feat: Add Open Search support
sy-records Aug 5, 2024
264f927
fix: branding favicon might be empty
sy-records Aug 6, 2024
ea43edc
feat(badge): define func and add badge's list
kumfo Aug 7, 2024
23b6b11
feat(badge): badge init add icon
kumfo Aug 7, 2024
2e62666
add pvc dataSource
builtroller Aug 6, 2024
07e4f54
feat(badge): add event for the badge
LinkinStars Aug 8, 2024
797ea9b
feat(badge): badge info && badge award list
kumfo Aug 8, 2024
b2d36e0
Merge branch 'feat/1.4.0/badges' into feat/1.4.0/badge
LinkinStars Aug 8, 2024
9b0de85
feat(badge): add badge event handler
LinkinStars Aug 8, 2024
49ba98c
feat(badge): change badge_award entity
kumfo Aug 8, 2024
8a40e95
Merge remote-tracking branch 'origin/feat/1.4.0/badge' into feat/1.4.…
kumfo Aug 8, 2024
122ac65
feat(badge): change badge_award check
kumfo Aug 8, 2024
203062d
feat(badge): badge award
kumfo Aug 9, 2024
c2531f9
chore(badge): change project code struct
kumfo Aug 9, 2024
5293f4f
feat(badge): user's badge award list
kumfo Aug 9, 2024
61db21e
feat(badge): fixed user's badge award list and add recent user badges
kumfo Aug 12, 2024
5c04bce
feat(badge): fixed badge detail
kumfo Aug 12, 2024
98d93b1
feat(badge): add badge checking rule
LinkinStars Aug 12, 2024
290f63f
feat(badge): add comment for event schema
LinkinStars Aug 13, 2024
bb40366
feat(badge): badge manage and user center's badge list
kumfo Aug 13, 2024
cf327f5
feat(badge): badge manage add badge search
kumfo Aug 13, 2024
b0c7675
feat(badge): badge search with page
kumfo Aug 14, 2024
bede0ad
feat(badge): award badge for user
LinkinStars Aug 14, 2024
46ab8a2
chore(badge): remove unused comment
LinkinStars Aug 14, 2024
f0c433c
fix(badge): fix badge init data
LinkinStars Aug 14, 2024
7d040f0
feat(badge): add badge notification
LinkinStars Aug 15, 2024
5e5551a
perf: remove invalid nil pointer check in Translate function
sosyz Aug 7, 2024
7d5bfaa
perf: update check-asf-header.sh script to support Podman
sosyz Aug 13, 2024
d63ce36
perf: remove extra characters in header.html
sosyz Aug 15, 2024
ebc8585
chore(badge): delete not used func
kumfo Aug 19, 2024
c50e63d
fix(dev): delete test file
kumfo Aug 19, 2024
8315578
Revert "fix(dev): delete test file"
kumfo Aug 19, 2024
38834e6
feat: Add Open Search support
sy-records Aug 5, 2024
1b043d3
fix: branding favicon might be empty
sy-records Aug 6, 2024
016abd1
add pvc dataSource
builtroller Aug 6, 2024
eda3938
perf: remove invalid nil pointer check in Translate function
sosyz Aug 7, 2024
4b3e0ea
perf: update check-asf-header.sh script to support Podman
sosyz Aug 13, 2024
9691692
perf: remove extra characters in header.html
sosyz Aug 15, 2024
b41bafa
fix(dev): delete test file
kumfo Aug 19, 2024
e9c9250
Revert "fix(dev): delete test file"
kumfo Aug 19, 2024
f660b63
fix(dev): delete test file
kumfo Aug 19, 2024
1d9f88f
fix(embed): embed plugin type definition
kumfo Aug 19, 2024
a590bdf
Merge branch 'feat/1.4.0/badge' into test
kumfo Aug 21, 2024
59b089a
Merge branch 'feat/1.4.0/embed' into test
kumfo Aug 21, 2024
3d8cf0e
feat: bages ui
shuashuai Aug 5, 2024
6973a00
fix: personal add recent bages ui
shuashuai Aug 6, 2024
8534079
fix: replace share params shareUserId to share
shuashuai Aug 6, 2024
3f1f315
fix: badge list and badge detail docking api
shuashuai Aug 8, 2024
fce712e
fix: bages detail add userCard conponent
shuashuai Aug 12, 2024
3d71bc1
fix: badge detail list styles format
shuashuai Aug 12, 2024
957c299
fix: delete log
shuashuai Aug 13, 2024
29f2ce3
fix: add link url path
shuashuai Aug 14, 2024
ec31d18
feat(admin): Improve the badge list
robinv8 Aug 13, 2024
04065a8
refactor: Update query parameter name in badge list API call
robinv8 Aug 13, 2024
4afa76b
refactor: update zh_CN.yaml
robinv8 Aug 13, 2024
342c31f
fix: add link url path
shuashuai Aug 14, 2024
3cb1be8
refactor: Update badge description styling in Admin Badges page
robinv8 Aug 14, 2024
db1a527
refactor: Update page_size parameter in badge list API call
robinv8 Aug 14, 2024
45f410c
chore: Update tsconfig.json to exclude src/plugins directory
robinv8 Aug 16, 2024
ac28c88
refactor: Update badge description styling in Admin Badges page
robinv8 Aug 16, 2024
90cf954
refactor: Update badge description styling in Admin Badges page
robinv8 Aug 16, 2024
8551653
feat:Support Render type plugins
robinv8 Aug 13, 2024
7c59d3f
feat: Add useRenderPlugin to Editor component
robinv8 Aug 15, 2024
e48a13f
refactor: Update Chinese translation for badge activation
robinv8 Aug 22, 2024
e4d0322
refactor: Remove unused dropdown item in BadgeOperation component
robinv8 Aug 22, 2024
e6aa178
refactor: Update key prop in BadgeDetail component
robinv8 Aug 22, 2024
34684cd
refactor: Update BadgeModal component to handle badge cancellation an…
robinv8 Aug 22, 2024
7d8e679
docs: enable wiki
fenbox Aug 13, 2024
15531f4
build swagger documentation on go generate
jernsting Aug 15, 2024
493d5c0
requested changes
jernsting Aug 16, 2024
b20e656
feat(config): add deactivate plugin config cli
LinkinStars Aug 22, 2024
76d455e
refactor: Restore zh_CN.yaml
robinv8 Aug 22, 2024
1e8072b
refactor: Update translation for achievements
robinv8 Aug 22, 2024
065bf98
chore: Add License
robinv8 Aug 22, 2024
82d7445
fix: embed controller add error return
kumfo Aug 22, 2024
2cc4783
Merge branch 'feat/1.4.0/config' into test
LinkinStars Aug 23, 2024
1af1f77
feat: Add RenderController to handle rendering configuration
robinv8 Aug 23, 2024
6214fed
docs: Add render api
robinv8 Aug 23, 2024
701343e
Fix error on multiple make generate runs (#1087)
jernsting Aug 23, 2024
16605ea
Fix error on multiple make generate runs (#1087)
jernsting Aug 23, 2024
9082623
fix(badge): remove duplicate default badges
LinkinStars Aug 27, 2024
49db6e7
Merge branch 'feat/1.4.0/badge' into test
LinkinStars Aug 27, 2024
17c69c3
fix: badges link url
shuashuai Aug 27, 2024
f6b93f2
refactor(badge): remove unused code
LinkinStars Aug 28, 2024
341b0ab
refactor: Remove unnecessary CSS property in Editor utils
robinv8 Aug 30, 2024
23323d9
fix: When using base_url, some links are missing the base path
shuashuai Aug 30, 2024
11de15c
Merge branch 'fix/link' into test
shuashuai Aug 30, 2024
9594acb
fix: badges index page show award count
shuashuai Sep 2, 2024
292dfe6
feat(badge): feat badge description url
kumfo Sep 2, 2024
90faa87
refactor(badge): remove unused code
LinkinStars Aug 28, 2024
6aa6409
feat(badge): feat badge description url
kumfo Sep 2, 2024
4f80f9e
feat(badge): badge list earned return earned total
kumfo Sep 2, 2024
1666b94
feat(badge): badge list earned return earned total
kumfo Sep 2, 2024
8b9f5d4
refactor: Add links to badge names and award counts in Admin Badges page
robinv8 Sep 2, 2024
afaf11f
refactor: Update badge labels to use multiplication symbol instead of…
robinv8 Sep 2, 2024
63e1da6
refactor: add err handling for activeUser
CodingCookieRookie Sep 1, 2024
ca8c4b4
refactor: Update badge labels to use multiplication symbol instead of…
robinv8 Sep 3, 2024
d72cf56
refactor: Add text truncation to TopList component link
robinv8 Sep 3, 2024
2aa16ff
refactor: Update badge description rendering in Admin Badges page
robinv8 Sep 3, 2024
41d63bd
feat(badge): delete red dot when no unread notification
LinkinStars Sep 3, 2024
2eaa7db
Merge remote-tracking branch 'origin/dev' into feat/1.4.0/badge
LinkinStars Sep 3, 2024
0606d87
Merge branch 'feat/1.4.0/badge' into test
LinkinStars Sep 3, 2024
8a31d29
Fix ListNewestEarned in high version MySQL
lhpqaq Sep 3, 2024
70acbe3
fix: styles
shuashuai Sep 3, 2024
d316764
Merge branch 'test' into feat/1.4.0/badge
kumfo Sep 3, 2024
fec34ae
feat(badge): delete useless field
kumfo Sep 3, 2024
c592231
Merge branch 'main' into dev
shuashuai Sep 3, 2024
86cde0e
fix: style
shuashuai Sep 3, 2024
a36d2e8
feat(badge): delete useless field
kumfo Sep 3, 2024
1ebff25
Merge branch 'dev' of github.com:answerdev/answer into dev
shuashuai Sep 3, 2024
a2c725a
refactor: Update BadgeOperation component to conditionally render dro…
robinv8 Sep 3, 2024
daab3ee
feat: Add animation to badgeModal
robinv8 Sep 3, 2024
052b78b
fix(badge): remove red dot only when the badge notification has been …
LinkinStars Sep 4, 2024
5c5300a
Merge branch 'feat/1.4.0/badge' into test
LinkinStars Sep 4, 2024
eacb79e
feat(recommend): add tag-based recommendations in question page
ferrischi201 Jul 18, 2024
cf7b2f0
fix(recommend): fix for all database backend
ferrischi201 Aug 27, 2024
8142d78
fix(recommend): redirect unauth users from recommend page
ferrischi201 Sep 3, 2024
cb5a0b7
chore(lint): lint code and regenerate docs
LinkinStars Sep 4, 2024
2ca5e8b
Merge branch 'dev' into test
LinkinStars Sep 4, 2024
b540191
fix: badge detial not show empty
shuashuai Sep 4, 2024
d5d9f38
feat(badge): add trigger object id for all badge award event
LinkinStars Sep 4, 2024
323ee0e
docs(makefile): upgrade version
LinkinStars Sep 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
.PHONY: build clean ui

VERSION=1.3.6
VERSION=1.4.0
BIN=answer
DIR_SRC=./cmd/answer
DOCKER_CMD=docker

GO_ENV=CGO_ENABLED=0 GO111MODULE=on
Revision=$(shell git rev-parse --short HEAD 2>/dev/null || echo "")
GO_FLAGS=-ldflags="-X github.com/apache/incubator-answer/cmd.Version=$(VERSION) -X 'github.com/apache/incubator-answer/cmd.Revision=$(Revision)' -X 'github.com/apache/incubator-answer/cmd.Time=`date +%s`' -extldflags -static"
GO=$(GO_ENV) $(shell which go)
GO=$(GO_ENV) "$(shell which go)"

build: generate
@$(GO) build $(GO_FLAGS) -o $(BIN) $(DIR_SRC)
Expand All @@ -23,6 +23,8 @@ universal: generate
generate:
@$(GO) get github.com/google/wire/cmd/wire@v0.5.0
@$(GO) get github.com/golang/mock/mockgen@v1.6.0
@$(GO) get github.com/swaggo/swag/cmd/swag@v1.16.3
@$(GO) install github.com/swaggo/swag/cmd/swag@v1.16.3
@$(GO) install github.com/google/wire/cmd/wire@v0.5.0
@$(GO) install github.com/golang/mock/mockgen@v1.6.0
@$(GO) generate ./...
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 apache/answer:1.3.6
docker run -d -p 9080:80 -v answer-data:/data --name answer apache/answer:1.4.0
```

For more information, see [Installation](https://answer.apache.org/docs/installation).
Expand Down
8 changes: 7 additions & 1 deletion charts/templates/pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: {{ include "answer.fullname" . }}-claim
{{- with .Values.persistence.annotations }}
{{- with .Values.persistence.annotations }}
annotations:
{{ toYaml . | indent 4 }}
{{- end }}
Expand All @@ -39,4 +39,10 @@ spec:
resources:
requests:
storage: {{ .Values.persistence.size | quote }}
{{- with .Values.persistence.dataSource }}
dataSource:
name: {{ .name }}
kind: {{ .kind | default "VolumeSnapshot" }}
apiGroup: {{ .apiGroup | default "snapshot.storage.k8s.io" }}
{{- end }}
{{- end }}
8 changes: 7 additions & 1 deletion charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ env:

# Configure extra containers
extraContainers: []
# - name: cloudsql-proxy
# - name: cloudsql-proxy
# image: gcr.io/cloud-sql-connectors/cloud-sql-proxy:2.1.2
# command:
# - /cloud-sql-proxy
Expand All @@ -91,6 +91,12 @@ persistence:
accessMode: ReadWriteOnce
size: 5Gi
annotations: {}
# To restore a PVC from a VolumeSnapshot, set the dataSource;
# the kind and apiGroup are optional and default to the shown values
dataSource: {}
# name: my-volume-snapshot
# kind: VolumeSnapshot
# apiGroup: snapshot.storage.k8s.io

imagePullSecrets: []
nameOverride: ""
Expand Down
7 changes: 7 additions & 0 deletions cmd/answer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,19 @@
* under the License.
*/

//go:generate go run github.com/swaggo/swag/cmd/swag init -g ./cmd/answer/main.go -d ../../ -o ../../docs

package main

import (
answercmd "github.com/apache/incubator-answer/cmd"
)

// main godoc
// @title "apache answer"
// @description = "apache answer api"
// @version = "v0.0.1"
// @BasePath = "/"
// @securityDefinitions.apikey ApiKeyAuth
// @in header
// @name Authorization
Expand Down
11 changes: 8 additions & 3 deletions cmd/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,17 @@ To run answer, use:
}

field := &cli.ConfigField{}
for _, f := range configFields {
switch f {
fmt.Println(configFields)
if len(configFields) > 0 {
switch configFields[0] {
case "allow_password_login":
field.AllowPasswordLogin = true
case "deactivate_plugin":
if len(configFields) > 1 {
field.DeactivatePluginSlugName = configFields[1]
}
default:
fmt.Printf("field %s not support\n", f)
fmt.Printf("field %s not support\n", configFields[0])
}
}
err = cli.SetDefaultConfig(c.Data.Database, c.Data.Cache, field)
Expand Down
40 changes: 28 additions & 12 deletions cmd/wire_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading