Skip to content

Commit da9b4e0

Browse files
authored
Merge pull request #76 from trydofor/main
changelog, and semver
2 parents e70b762 + 508e1ea commit da9b4e0

14 files changed

Lines changed: 228 additions & 17 deletions

File tree

.vscode/settings.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"autonumber",
1818
"autoreg",
1919
"autorun",
20+
"autosquash",
2021
"backquote",
2122
"baeldung",
2223
"batrider",
@@ -186,6 +187,7 @@
186187
"oapi",
187188
"Okhttp",
188189
"Omniknight",
190+
"oneline",
189191
"OOTB",
190192
"operationthreadsamples",
191193
"Orika",
@@ -314,4 +316,24 @@
314316
"zhyd",
315317
"zoneid"
316318
],
319+
"workbench.colorCustomizations": {
320+
"activityBar.activeBackground": "#65c89b",
321+
"activityBar.background": "#65c89b",
322+
"activityBar.foreground": "#15202b",
323+
"activityBar.inactiveForeground": "#15202b99",
324+
"activityBarBadge.background": "#945bc4",
325+
"activityBarBadge.foreground": "#e7e7e7",
326+
"commandCenter.border": "#15202b99",
327+
"sash.hoverBorder": "#65c89b",
328+
"statusBar.background": "#42b883",
329+
"statusBar.foreground": "#15202b",
330+
"statusBarItem.hoverBackground": "#359268",
331+
"statusBarItem.remoteBackground": "#42b883",
332+
"statusBarItem.remoteForeground": "#15202b",
333+
"titleBar.activeBackground": "#42b883",
334+
"titleBar.activeForeground": "#15202b",
335+
"titleBar.inactiveBackground": "#42b88399",
336+
"titleBar.inactiveForeground": "#15202b99"
337+
},
338+
"peacock.color": "#42b883",
317339
}

src/0-wings/0d-qa-devops.md

Lines changed: 54 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,43 @@ To get information about server, use the following,
190190
When debugging third-party integrations such as Oauth, payments, etc., you need to have a public ip or domain
191191
to forward public requests to the development machine for debugging.
192192

193-
* Temporarily with ssh - `ssh -R 9988:127.0.0.1:8080 user@remote`
193+
* Temporarily with ssh - `ssh -R 9988:localhost:8080 user@remote`
194194
* persistent with frp - <https://gofrp.org/docs/>
195195
* Simple with netapp - <https://natapp.cn/>
196196

197+
take local.moilioncircle.com for example, use ssh + nginx to forward
198+
199+
* local port 8080
200+
* public domain local.moilioncircle.com
201+
* public port 9988, also http(80), 443 https(443)
202+
* forward request from public to localhost:8080
203+
204+
```nginx
205+
# ssh -R 9988:localhost:8080 ubuntu@local.moilioncircle.com
206+
server {
207+
listen 80;
208+
listen 443 ssl;
209+
server_name local.moilioncircle.com;
210+
211+
access_log /data/logs/nginx/local.moilioncircle.com-access.log;
212+
error_log /data/logs/nginx/local.moilioncircle.com-error.log;
213+
214+
ssl_certificate /data/nginx/cert/moilioncircle.com/fullchain.pem;
215+
ssl_certificate_key /data/nginx/cert/moilioncircle.com/privkey.pem;
216+
217+
location / {
218+
proxy_pass http://127.0.0.1:9988;
219+
proxy_http_version 1.1;
220+
proxy_cache_bypass $http_upgrade;
221+
proxy_set_header Upgrade $http_upgrade;
222+
proxy_set_header Connection $http_connection;
223+
proxy_set_header Host localhost;
224+
proxy_set_header X-Real-IP $remote_addr;
225+
proxy_redirect http:// $scheme://;
226+
}
227+
}
228+
```
229+
197230
## 0D.09.IDEA Hits Component/Scanned
198231

199232
When importing the Wings project, IDEA cannot be able to handle the WingsAutoConfiguration in spring.factories,
@@ -222,8 +255,8 @@ at org.jooq.impl.AbstractQuery.execute(AbstractQuery.java:390)
222255
## 0D.11.`Input length = 1` Error
223256

224257
```text
225-
Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources
226-
(default-resources) on project xxx-common: Input length = 1
258+
Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources
259+
(default-resources) on project xxx-common: Input length = 1
227260
```
228261

229262
The reason is that there are non-text files (not readable by string) in the filter directory of the maven-resources-plugin.
@@ -681,3 +714,21 @@ so, when handling async/future tasks, interrupt, cancel and shutdown need to be
681714

682715
* Tolerant of loss, await-termination=false
683716
* Recoverable, await-termination=true, actively interrupt or cancel
717+
718+
## 0D.42.Git fixup commit
719+
720+
```bash
721+
git log --oneline -n 5 | cat -n # check commit history
722+
# 1 86f226c 📝 changelog of 337, 346
723+
# 2 0fccb54 ✨ ssh+nginx to test Oauth
724+
# 3 32d98bc 📝 changelog of 301.741
725+
# 4 fb31cf0 📝 semver detail meaning
726+
# 5 0fb5232 📝 typo Wings TerminalContext
727+
git add . # add all changes
728+
git status # check changes
729+
730+
## fixup by hash or ^4
731+
git commit --fixup=fb31cf0 # HEAD^4
732+
git rebase -i --autosquash fb31cf0^ # HEAD^5
733+
git push -f
734+
```

src/0-wings/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,14 @@ to microservices. At any project stage and business size, it can:
3030

3131
## 0.1.Version Number
3232

33-
From `x01.x.x`, Wings version is a standard [3-segment](https://semver.org),
34-
Combined with the dev version (`m.n.p-SNAPSHOT`) based on SpringBoot (`M.N.P`).
33+
From `x01.x.x`, Wings version is a standard [3-segment](https://semver.org), and
34+
35+
* major - mainly project compatibility, including its major dependencies
36+
* minor - mainly structural or framework-level addition, defensive compilation errors
37+
* patch - function enhancement, option and config addition
38+
* defensive compilation errors - compilation errors instead of runtime errors
39+
40+
Version number is the wings dev version (`m.n.p-SNAPSHOT`) with SpringBoot (`M.N.P`).
3541

3642
`V` = `M*100+m`.`N*100+n`.`P*100+p`-`SNAPSHOT`
3743

src/3-slardar/3d-i18n-zone.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ The `LocaleResolver` acts in the `doService`, after the `doFilter`, so there is
3333
`WingsLocaleResolver` is a servlet implementation and does not support webflux.
3434

3535
* After user login, Locale and ZoneId is automatically generated in the Context
36-
* `SecurityContextUtil` gets the Context in the Mvc layer, implemented by Filter
37-
* `WingsTerminalContext` is used in the Service layer, implemented by TerminalInterceptor
38-
* `LocaleZoneIdUtil` is based on `WingsTerminalContext`, used in non-spring bean
36+
* Spring `SecurityContextUtil` gets the Context in the Mvc layer, implemented by Filter
37+
* Wings `TerminalContext` is used in the Service layer, implemented by TerminalInterceptor
38+
* `LocaleZoneIdUtil` is based on `TerminalContext`, used in non-spring bean
3939
* `LocaleContextHolder` is from SpringMvc, used in Mvc without request
4040
* `RequestHelper` is used in Mvc with request
4141

src/9-example/9a.wings-change/9a0.notable.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ Incompatible and important features grouped by feather branch in reverse order.
3030

3131
## ![BountyHunter](/bountyhunter_minimap_icon.png "BountyHunter") ongoing [BountyHunter] 300.301.741-SS
3232

33+
* 💥 add apple oauth login [#337](https://github.com/trydofor/professional-wings/issues/337)
34+
* 💥 change oauth check nonce api [#346](https://github.com/trydofor/professional-wings/issues/346)
35+
3336
## ![Bloodseeker](/bloodseeker_minimap_icon.png "Bloodseeker") 250208 [Bloodseeker] 3.3.140
3437

3538
* 💥 up deps: boot 3.3, mirana new i18n [#309](https://github.com/trydofor/professional-wings/issues/309)
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
isOriginal: true
3+
icon: circle-up
4+
category:
5+
- Practice
6+
- Upgrade
7+
---
8+
9+
# 9A7.Upgrade 300.301.741
10+
11+
Upgrade manual from `3.3.140` after having upgraded to `300.301.741`, including,
12+
13+
* Bounty Hunter
14+
- 300.301.741
15+
16+
## ![BountyHunter](/bountyhunter_minimap_icon.png "BountyHunter") 9A8.1.Bounty Hunter
17+
18+
SemVer composed Spring Boot and wingsDev. including many breaking refactorings.
19+
20+
### 300.301.741 Oauth nonceCheck
21+
22+
[#337](https://github.com/trydofor/professional-wings/issues/337) ⚠️ Runtime - AuthCheckController#nonceCheck
23+
24+
rename to `JustAuthRequestManager`
25+
26+
[#346](https://github.com/trydofor/professional-wings/issues/346) 💥 Compile - JustAuthRequestBuilder
27+
28+
```diff
29+
- * @return {401} token is not-found, expired, or failed
30+
+ * @return {200 | Result(false))
31+
- * @return {200 | Result(false, message='authing')} in authing
32+
+ * @return {200 | Result(false, code='authing', message='authing')} in authing
33+
- * @return {200 | Result(true, data=sessionId)}
34+
+ * @return {200 | Result(true, code='session', data=sessionId)}
35+
```

src/9-example/9a.wings-change/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ miro version change log, major version upgrade guide.
2424
* [Upgrade 3.0.6.300 Guide](./9a5.306-300.md)
2525
* [Upgrade 3.2.100 Guide](./9a6.320-100.md)
2626
* [Upgrade 3.3.140 Guide](./9a7.330-140.md)
27+
* [Upgrade 300.301.741 Guide](./9a8.300-301-741.md)

src/9-example/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ server {
125125
proxy_http_version 1.1;
126126
proxy_cache_bypass $http_upgrade;
127127
128-
proxy_set_header Connection ""; # long conn
128+
proxy_set_header Connection ""; # delete header, long conn
129129
#proxy_set_header Connection "upgrade"; # ws
130130
#proxy_set_header Upgrade $http_upgrade; # ws
131131
proxy_set_header Host $host;

src/zh/0-wings/0d-qa-devops.md

Lines changed: 53 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,39 @@ Mapper ReMap-4.2.6 thrpt 25 505843.993 ± 25950.082 ops/s
190190
* 持久用 frp - <https://gofrp.org/docs/>
191191
* 简单用 netapp - <https://natapp.cn/>
192192

193+
以 local.moilioncircle.com 为例,临时使用 ssh + nginx 以下转发
194+
195+
* 本地端口 8080
196+
* 公网域名 local.moilioncircle.com
197+
* 公网端口 9988, 及 http(80), 443 https(443)
198+
* 转发公网的请求到 localhost:8080
199+
200+
```nginx
201+
# ssh -R 9988:127.0.0.1:8080 ubuntu@local.moilioncircle.com
202+
server {
203+
listen 80;
204+
listen 443 ssl;
205+
server_name local.moilioncircle.com;
206+
207+
access_log /data/logs/nginx/local.moilioncircle.com-access.log;
208+
error_log /data/logs/nginx/local.moilioncircle.com-error.log;
209+
210+
ssl_certificate /data/nginx/cert/moilioncircle.com/fullchain.pem;
211+
ssl_certificate_key /data/nginx/cert/moilioncircle.com/privkey.pem;
212+
213+
location / {
214+
proxy_pass http://127.0.0.1:9988;
215+
proxy_http_version 1.1;
216+
proxy_cache_bypass $http_upgrade;
217+
proxy_set_header Upgrade $http_upgrade;
218+
proxy_set_header Connection $http_connection;
219+
proxy_set_header Host localhost;
220+
proxy_set_header X-Real-IP $remote_addr;
221+
proxy_redirect http:// $scheme://;
222+
}
223+
}
224+
```
225+
193226
## 0D.09.IDEA提示component/scanned
194227

195228
导入wings工程,Idea会无法处理spring.factories中的WingsAutoConfiguration,会报类似以下信息
@@ -216,8 +249,8 @@ at org.jooq.impl.AbstractQuery.execute(AbstractQuery.java:390)
216249
## 0D.11.错误`Input length = 1`
217250

218251
```text
219-
Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources
220-
(default-resources) on project xxx-common: Input length = 1
252+
Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources
253+
(default-resources) on project xxx-common: Input length = 1
221254
```
222255

223256
原因是maven-resources-plugin的filter目录中存在非文本文件(不可按字符串读取),
@@ -657,3 +690,21 @@ wings的线程池,默认配置如下,会等待任务(执行中及队列中
657690

658691
* 可丢失型,await-termination=false
659692
* 可恢复型,await-termination=true,主动处理中断或取消
693+
694+
## 0D.42.git fixup 提交
695+
696+
```bash
697+
git log --oneline -n 5 | cat -n # check commit history
698+
# 1 86f226c 📝 changelog of 337, 346
699+
# 2 0fccb54 ✨ ssh+nginx to test Oauth
700+
# 3 32d98bc 📝 changelog of 301.741
701+
# 4 fb31cf0 📝 semver detail meaning
702+
# 5 0fb5232 📝 typo Wings TerminalContext
703+
git add . # add all changes
704+
git status # check changes
705+
706+
## fixup by hash or ^4
707+
git commit --fixup=fb31cf0 # HEAD^4
708+
git rebase -i --autosquash fb31cf0^ # HEAD^5
709+
git push -f
710+
```

src/zh/0-wings/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,14 @@ WingsBoot(代号神翼)是SpringBoot的一个脚手架,没有魔法和定制
2929

3030
## 0.1.版本号说明
3131

32-
`x01.x.x`起,Wings版本号为标准的[3段式](https://semver.org/lang/zh-CN/)
33-
由基于SpringBoot(`M.N.P`)的开发版(`m.n.p-SNAPSHOT`)组合而成,
32+
`x01.x.x`起,Wings版本号为标准的[3段式](https://semver.org/lang/zh-CN/),并且,
33+
34+
* 主版本 - 主要为工程的兼容,包括工程的主要依赖
35+
* 次版本 - 主要为结构或框架性新增,防御性编译错误
36+
* 修订号 - 包括功能的增强,选项及配置的增加
37+
* 防御性编译错误 - 以编译错误代替运行时错误
38+
39+
其数值由基于SpringBoot(`M.N.P`)的开发版(`m.n.p-SNAPSHOT`)组合而成,
3440

3541
`V` = `M*100+m`.`N*100+n`.`P*100+p`-`SNAPSHOT`
3642

0 commit comments

Comments
 (0)