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

chore(commons): migrate hugegraph-commons #2613

Closed
wants to merge 221 commits into from
Closed
Show file tree
Hide file tree
Changes from 219 commits
Commits
Show all changes
221 commits
Select commit Hold shift + click to select a range
a5fa901
HugeGraph-341: First commit hugegraph-common code
Linary Jun 27, 2017
5f30552
HugeGraph-344: add distributionManagement to deploy baidu maven repos…
Linary Jun 27, 2017
3e5f626
HugeGraph-351: code format and clean up some warnings
Linary Jun 28, 2017
db55e23
HugeGraph-351: fixed bug that CoreOption constructor has been removed
Linary Jun 28, 2017
cccef5d
HugeGraph-357: modify return type of TriFunction
Linary Jun 28, 2017
5603b9c
HugeGraph-326: add slf4j-api that has been mistakenly deleted
Linary Jun 29, 2017
7bdf878
HugeGraph-407: add KeyLock class
javeme Jul 10, 2017
3695904
HugeGraph-410: fixed code style of hugegraph-common
Linary Jul 11, 2017
d592690
HugeGraph-254: improve utils class perf with final(inline)
javeme Jul 13, 2017
ec2599d
HugeGraph-369
zhoney Jul 14, 2017
e88f54a
HugeGraph-462: add event manager
javeme Jul 19, 2017
9cc9cad
HugeGraph-476: add destroy() method
javeme Jul 20, 2017
9a1417f
HugeGraph-487
zhoney Jul 14, 2017
171e723
HugeGraph-494: refine logic of lock() menthod
freeHackOfJeff Jul 21, 2017
9778a8b
HugeGrap-499: fix english grammer in lock
freeHackOfJeff Jul 21, 2017
d3960c1
Always define long variable endwith 'L' indicator.
freeHackOfJeff Jul 21, 2017
315000a
HugeGraph-503: using bit shift whenever, if not affect the code reada…
freeHackOfJeff Jul 24, 2017
0c58069
HugeGraph-501: fix EventHub ConcurrentModificationException
javeme Jul 24, 2017
5252a7e
HugeGraph-410: improve code style
javeme Jul 24, 2017
9faea02
hugegraph-499
zhoney Jul 24, 2017
e05d130
HugeGraph-482: upgrade log4j to log4j2
Linary Jul 21, 2017
6052985
hugegraph-502
zhoney Jul 27, 2017
b76e0ea
HugeGraph-527: add customized implemention version to manifest.mf
Linary Jul 28, 2017
dfd3190
HugeGraph-527: First add the version to the common module.
Linary Jul 31, 2017
dec8fe9
HugeGraph-531: Fix typo at OptionHolder class
freeHackOfJeff Jul 31, 2017
f33c093
HugeGraph-532: Rewrite checksocket class
freeHackOfJeff Jul 31, 2017
5cda854
HugeGraph-525: add vertion check util
javeme Jul 28, 2017
a200dea
HugeGraph-131: clean up some warnings in LockGroup
javeme Aug 1, 2017
8bdac2c
HugeGraph-525: add the const NAME of component hugegraph-common into …
javeme Aug 2, 2017
f6cdc8a
HugeGraph-547: replace tilNextMillis by tillNextMills as the later is…
freeHackOfJeff Aug 2, 2017
705c27b
HugeGraph-555: add lockAll() for KeyLock
javeme Aug 8, 2017
504069e
HugeGraph-623: rename LoggerFactory.getLogger() to Log.logger()
javeme Aug 16, 2017
c24069e
HugeGraph-625: fixed bug that there is a line length of more than 80 …
Linary Aug 16, 2017
b4a6cc9
HugeGraph-596: fixed bug that hugegraph-common deploy before merge
Linary Aug 16, 2017
ca0a983
HugeGraph-596: Passed env varibale from BCLOUD to agile module for hu…
Linary Aug 17, 2017
281aab8
HugeGraph-645: Add space line between license and package for hugegra…
Linary Aug 17, 2017
4d6c421
HugeGraph-726: add toList(array) method into class CollectionUtil
javeme Aug 25, 2017
12c53cc
fix EventHub bugs: HugeGraph-732 and HugeGraph-733
javeme Aug 25, 2017
5195740
HugeGraph-762: add isSimpleType() method to class ReflectionUtil
javeme Sep 1, 2017
5e003a7
HugeGraph-830: Catch IOException if create new socket connection fail…
Linary Oct 31, 2017
d8d4b3e
hugegraph-911 add prefixOf method into CollectionUtil
zhoney Nov 6, 2017
094f8bb
HugeGraph-935: Add a method 'allUnique'
Linary Nov 13, 2017
b01f3a3
HugeGraph-975: support conversion: number <==> bytes
javeme Dec 7, 2017
3d3da16
HugeGraph-978: add prefixWith() for bytes
javeme Dec 11, 2017
1804fa7
HugeGraph-984: Fixed bug that multi graphs has same name config optio…
Linary Dec 13, 2017
6503235
HugeGraph-986: Let prefixOf support generic type
Linary Dec 15, 2017
7789bc8
HugeGraph-989: add toHex()/fromHex() to class Bytes
javeme Dec 19, 2017
8a44989
HugeGraph-990: Fixed bug that compile error when building project
Linary Dec 19, 2017
24ff820
HugeGraph-994: Fixed bug that some key has more than one value will t…
Linary Dec 22, 2017
fe8b51d
HugeGraph-976: add filter-iterator
javeme Dec 7, 2017
9f994b3
HugeGraph-1000: allow non-check of config options
javeme Dec 27, 2017
8219a10
HugeGraph-1075: add allowValues() to OptionChecker
javeme Jan 18, 2018
2ae8e15
HugeGraph-1097: fix missing check for duplicated options
javeme Feb 1, 2018
749a2d9
HugeGraph-1097: fix check error when HugeConfig(Configuration config)…
javeme Feb 2, 2018
fde9c72
HugeGraph-1110: let iterators implement AutoCloseable and Metadatable
javeme Feb 6, 2018
8d83339
HugeGraph-1158: awllow empty Iterator add to ExtendableIterator
javeme Mar 2, 2018
154e030
HugeGraph-1171: Modify the way for config options registration
Linary Mar 22, 2018
cb33bbd
HugeGraph-1174: Let config reload if some options contains comma
Linary Mar 23, 2018
12c6591
HugeGraph-1183: Add common RestClient for server and client
Linary Mar 28, 2018
56a60dc
HugeGraph-1190: add OptionSpace.keys() method
javeme Mar 29, 2018
1bf8d9e
HugeGraph-1191: rewrite exception handling mechanism at register method
freeHackOfJeff Mar 29, 2018
5183fb0
HugeGraph-1208: Move compareNumber() from core to common module
Linary Apr 8, 2018
887a4d5
HugeGraph-1196: Fix grammer at exits method
freeHackOfJeff Mar 30, 2018
c2db8f5
HugeGraph-81: Fixed bug that message and cause placed error
Linary Apr 10, 2018
aa222c4
HugeGraph-1229: add README.md for project hugegraph-common
Linary Apr 16, 2018
d6d92e4
HugeGraph-1229: add README.md for project hugegraph-common
Linary Apr 17, 2018
9346717
HugeGraph-1236: add getMap() to HugeConfig
javeme Apr 18, 2018
140cf84
hugegraph-1234 add subset util
zhoney Apr 19, 2018
544b94c
HugeGraph-1257: Let jersey client use preemptive credentials
Linary Apr 27, 2018
daa967d
HugeGraph-1301: Move SafeDateFormat class to hugegraph-common module
Linary Jun 8, 2018
8c76d5b
HugeGraph-1309: add remove() support to WrappedIterator
javeme Jun 13, 2018
4aae65c
HugeGraph-81: Small optimization of package structure
Linary Jun 20, 2018
92ad62a
HugeGraph-1330: add support for 128bits hash
javeme Jun 28, 2018
50c7738
HugeGraph-1312: Add config to deploy to sonatype maven respority
Linary Jun 28, 2018
eed956d
hugegraph-81 add github link to README
zhoney Jul 3, 2018
9db4310
HugeGraph-1336: move common tests from hugegraph-test to hugegraph-co…
javeme Jul 5, 2018
1db56cf
HugeGraph-1341: Upgrade version to 1.4.8(1.4.7 failed deploying to ma…
Linary Jul 11, 2018
553cd60
hugegraph-889 add ACCEPTED to POST, PUT and DELETE for async
zhoney Jul 18, 2018
a412145
HugeGraph-1349: Add some badges(licence, build, coverage and maven) i…
Linary Jul 23, 2018
1c7c839
hugegraph-1364 add LICENSE for hugegraph-common
zhoney Jul 26, 2018
07793f9
HugeGraph-622: Bump up to version 1.5.0
zhoney Jul 27, 2018
591d3f3
HugeGraph-1399: let EventHub.notify() return Future to sync
javeme Aug 22, 2018
16fbcb3
Optimize intersect action
Linary Oct 9, 2018
904f426
README improve
zhoney Oct 12, 2018
146e4bc
add api for setting thread pool name
javeme Oct 19, 2018
476bb78
Add CollectionUtilTest to UnitTestSuite
Linary Dec 17, 2018
6f20cb8
Fix dependency conflict "InjectionManagerFactory not found"
Linary Dec 18, 2018
bbbc8e7
Add CollectionUtil.sortByValue()
Linary Dec 24, 2018
5f6012c
Support for sortable base64 encoding
javeme Dec 21, 2018
5bac575
Set origin iterator last one if all iterators of extendable iterator …
zhoney Feb 15, 2019
95530cc
add PerfUtil.clear()/Bytes.concat()/CollectionUtil.randomSet()
javeme Feb 27, 2019
306b4f1
fix NPE in EventHub.destroy()
javeme Apr 8, 2019
87c5826
Let RestClient can reuse connections
Linary Jan 6, 2019
1eb2414
Add OrderLimitMap
Linary Apr 16, 2019
194ed53
add Whitebox.invoke() method (#22)
javeme May 7, 2019
5ea077f
add support of sortable negative number for NumericUtil (#23)
javeme May 21, 2019
0822dd9
let subclass of ConfigOption be able to override parent options (#24)
javeme May 28, 2019
1a66a60
Enhance toList and add toSet in CollectionUtil (#25)
Linary May 29, 2019
64bd154
RestClient support to close idle connection periodically (#26)
Linary Jun 11, 2019
2f453c0
support typed option (#27)
javeme Jun 17, 2019
48a39fc
improve exception message for InvocationTargetException (#28)
javeme Jun 24, 2019
85a6b7e
Enhance ExecutorUtil to create ScheduledThreadPool (#29)
Linary Jun 24, 2019
b525aef
add maxValueOf() for NumericUtil (#30)
zhoney Jun 26, 2019
88d8838
Support show time in readable format (#31)
Linary Jul 1, 2019
ce75fb9
Enhance split in StringUtil (#32)
Linary Jul 9, 2019
0436a14
add methods Bytes.contains() & Bytes.indexOf() (#33)
javeme Jul 17, 2019
cc46341
improve LongEncoding.decodeSortable() (#34)
zhoney Jul 22, 2019
f8e65f8
add Bytes.toHex() method (#35)
javeme Aug 15, 2019
41bc25c
support calling superclass method for Whitebox.invoke() (#37)
javeme Sep 5, 2019
0ff4b0e
Extract license common structures (#36)
Linary Sep 6, 2019
4eda631
Support keyLock in LockGroup (#38)
zhoney Sep 25, 2019
49bff5e
Support RowLock in LockGroup (#39)
zhoney Oct 11, 2019
d78b728
Split ConfigOption read into two steps: parse() and convert() (#40)
javeme Dec 31, 2019
8268b75
add generic parameter for RowLock (#42)
javeme Dec 31, 2019
24b8a33
support assert range conditions (#41)
javeme Dec 31, 2019
4bd64ce
fix iterators may not be closed (#43)
javeme Jan 8, 2020
0a71d12
Add nodes and data size to extra param (#44)
Linary Feb 4, 2020
fffccf1
Upgrade jackson version to 2.10.2 (#45)
Linary Feb 23, 2020
0d90ae4
add encodeSignedB64() method (#46)
javeme Mar 19, 2020
c2c5ba4
add https support (#47)
shzcore Jun 11, 2020
034e1a2
Add dateutil (#48)
zhoney Jun 15, 2020
b4fb1f7
refactor RestClient as interface (#49)
javeme Jun 19, 2020
544599e
Fix HugeConfig save to file is empty (#51)
Linary Jul 1, 2020
9f329f5
Bump log4j2.version from 2.8.2 to 2.13.3 (#52)
dependabot[bot] Jul 2, 2020
630e19f
fix LockManager get/create race condition (#53)
javeme Jul 24, 2020
2d4a8ee
Upgrade version to 1.8.0 for release (#55)
Linary Nov 5, 2020
9962e0c
fix https+auth bug (#57)
zhoney Nov 17, 2020
37de7be
Improve SafeDateFormat by joda DateTimeFormatter (#59)
Linary Dec 14, 2020
f4e861b
add BarrierEvent (#60)
houzhizhen Jan 11, 2021
c80f959
Implement PausableScheduledThreadPool (#61)
Linary Feb 3, 2021
cde7763
fix BatchMapperIterator stopped when fetched none in the middle batch…
javeme Feb 25, 2021
ccc4d3b
add LimitIterator class (#62)
javeme Mar 1, 2021
42e5260
Add Class.class as an accept data type in TypedOption (#65)
Linary Mar 7, 2021
1114e94
First commit
Linary Mar 16, 2021
3914813
Add checkstyle plugin
Linary Mar 17, 2021
98844d8
add UnitUtil class (#66)
javeme Mar 19, 2021
265f74b
Add checkstyle plugin (#67)
Linary Mar 19, 2021
159143c
add rpc framework based on sofa-rpc (#1)
javeme Mar 23, 2021
6c80038
support random port to start rpc server (#2)
javeme Mar 25, 2021
d51efb6
add some test cases for util package (#70)
javeme Apr 12, 2021
fe19014
improve profile performance (#69)
javeme Apr 13, 2021
aecaf4e
remove inner hostname from cacerts.jks (#72)
shzcore Apr 15, 2021
185a926
Fix senstive mail address (#71)
Linary Apr 15, 2021
f72fac4
Improve some license params (#73)
Linary Apr 16, 2021
74b954a
disable delimiter parsing when construct from MapConfiguration (#74)
houzhizhen Apr 26, 2021
27dfd9d
Bump commons-io from 2.4 to 2.7 (#75)
dependabot[bot] Jun 3, 2021
9101842
Bump jackson.version from 2.10.2 to 2.12.1 (#63)
dependabot[bot] Jun 3, 2021
efa8e97
chore: use github action to run ci (#77)
Linary Jun 23, 2021
535ae07
add Auth Context to store request header(Authorization) (#76)
corgiboygsj Jun 24, 2021
49e8599
chore: add issue template & auto stale issues and pr (#78)
imbajin Jul 2, 2021
3881b86
fix: unable to close the rpc thread pool at destroy (#3)
coderzc Jul 28, 2021
53c6503
chore: update ubuntu version for ci actions (#79)
imbajin Oct 9, 2021
1d27452
add bearer token support (#81)
guoygang Nov 2, 2021
c572c2b
first rename
imbajin Nov 30, 2021
0789b1c
merge rpc module into commons
imbajin Nov 30, 2021
24c3390
chore: merge license & checkstyle & ci
imbajin Dec 1, 2021
ee08712
chore: new pom & README for module
imbajin Dec 1, 2021
f5383d5
Merge pull request #84 (merge rpc module into commons)
javeme Dec 7, 2021
3b8933c
fix log4j error (#85)
zhoney Dec 15, 2021
fbb743a
bump up version to 2.0.0 (#86)
javeme Dec 17, 2021
4a1926f
improve java doc (#87)
zhoney Dec 17, 2021
8f0f2ba
release maven package by actions (#88)
coderzc Dec 21, 2021
922a4f6
upgrade log4j to version 2.17.0 (#89)
zhoney Dec 21, 2021
d695bd4
fix some test cases naming (#90)
javeme Dec 21, 2021
4b21e94
chore: support java 11 (#83)
zyxxoo Jan 14, 2022
05fe7a4
chore: use cla assistant to support robot pr (#92)
imbajin Mar 3, 2022
88d2f89
chore: support code security check with codeQL (#94)
imbajin Mar 21, 2022
d0e5971
fix: can't delete conf file when drop graph (#93)
zyxxoo Mar 21, 2022
f2e8384
version 2.1.2 (#96)
zyxxoo Apr 11, 2022
deac513
improve Whitebox.setInternalState() (#99)
javeme Apr 27, 2022
db84121
refact: unify pom & remove useless file (#100)
imbajin Apr 29, 2022
589ee2c
support assert-throws return future (#102)
javeme May 27, 2022
4af14a9
add Cnm and Anm to CollectionUtil (#101)
javeme May 27, 2022
745bd86
chore: use .asf.yaml for apache workflow rule (#98)
imbajin Jun 7, 2022
09b1819
update checkstyle (#97)
seagle-yuan Jun 13, 2022
42ef9c4
chore: upgrade CodeQL version to v2 (#106)
damonxue Sep 6, 2022
3b1bcb1
rename package name `com.baidu` to `org.apache` (#104)
corgiboygsj Sep 8, 2022
e85ab38
refact: clean code & typo & update the name of getTimeZone (#105)
imbajin Sep 15, 2022
be72d20
chore: setup for apache maven release (#107)
imbajin Oct 19, 2022
b783da5
feat(apache): support check license header with RAT (#108)
imbajin Oct 20, 2022
ae54f28
refact: upgrade a string of dependencies to address CVEs report & cle…
imbajin Oct 26, 2022
dc3e9e2
chore: enable ci in all prs (#111)
imbajin Oct 26, 2022
4361a51
chore: fix missing mail address & other configs (#112)
imbajin Oct 26, 2022
16602cc
support custom content-type (#113)
z7658329 Nov 1, 2022
7347b17
fix apache revision (#114)
z7658329 Nov 4, 2022
952975a
add dep check ci (#116)
simon824 Nov 8, 2022
caa4b26
refact: address some code alert (#115)
imbajin Nov 9, 2022
4dbe157
Add thrid-party dependency licenses (#117)
simon824 Nov 9, 2022
5bc993f
manifest version use project.version (#119)
z7658329 Nov 23, 2022
37e221a
delete blankspace of licenses filename (#120)
seagle-yuan Nov 30, 2022
c86e38a
chore: enable rebase option (#121)
imbajin Dec 4, 2022
a40774e
chore: prepare for release v1.0.0 (#122)
imbajin Dec 6, 2022
9463119
chore: update release script & add mailing lists (#123)
imbajin Dec 15, 2022
0239a1e
fix: add style files back (#125)
z7658329 Jan 1, 2023
e400e4d
refact(test): download binary file for https test (#126)
imbajin Jan 13, 2023
e339fed
fix(dist): generate doc & exit script when upload files failed
imbajin Dec 15, 2022
c28f8c8
chore: add DISCLAIMER & NOTICE & LICENSE file to binary package
imbajin Jan 6, 2023
1f64e8a
chore: remove copyright in file header & fix some files
imbajin Jan 12, 2023
8724b12
chore: fix copyright year and format
imbajin Jan 12, 2023
e1cb3eb
chore(license): fix 3rd party refer code (#127)
imbajin Feb 3, 2023
6f9493a
1
simon824 Feb 9, 2023
6aa01af
Update NOTICE
simon824 Feb 9, 2023
f9593d4
chore: refactor the license check CI
imbajin Feb 7, 2023
82f2a65
Update license-checker.yml
imbajin Feb 7, 2023
297e491
fix commons dependency conflict (#131)
z7658329 Apr 20, 2023
c31a536
add some construction methods for more convenient use (#132)
chengxin1374 Jul 19, 2023
b49be05
add: dependency-review (#134)
msgui Sep 20, 2023
5ad55fb
feat(common): replace jersey dependencies with OkHttp (Breaking Chang…
zhenyuT Nov 22, 2023
8c93652
fix: Assert.assertThrows() should check result of exceptionConsumer (…
javeme Nov 30, 2023
10f0a87
refact(common): rename jsonutil to avoid conflicts with server (#136)
imbajin Dec 4, 2023
dcf3752
fix the json param convert (#137)
zhenyuT Dec 5, 2023
44f99e9
doc: update README for release (#138)
imbajin Dec 12, 2023
33fa9ed
update licence (#139)
zhenyuT Dec 17, 2023
0cfd8da
feat: support user defined RestClientConfig/HTTPClient params (#140)
zhenyuT Mar 13, 2024
c883f56
chore: disable clean flatten for deploy (#141)
imbajin Mar 13, 2024
93c2e08
Update 'How to Contribute' link and remove duplicate 'Guidelines' li…
ZeeJJ123 May 28, 2024
9baef8b
fix(commons):fixed memory leaks occur in HugeGraph Server during data…
haohao0103 Jul 30, 2024
162a104
git mv to hugegraph-commons
VGalaxies Aug 3, 2024
795dc4e
Merge remote-tracking branch 'remotes/commons/migrate-commons' into i…
VGalaxies Aug 3, 2024
2fb9500
chore(commons): basic adapt for commons migration
VGalaxies Aug 3, 2024
f5b6120
Merge branch 'master' into intro-commons
VGalaxies Aug 10, 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
54 changes: 54 additions & 0 deletions hugegraph-commons/.asf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

github:
features:
# Enable issue management
issues: true
# Enable wiki for documentation
wiki: true
# Enable projects for project management boards
projects: true
description: HugeGraph Commons - include common library & RPC module
homepage: https://hugegraph.apache.org/
del_branch_on_merge: true
#labels:

enabled_merge_buttons:
merge: false
squash: true
rebase: true
protected_branches:
master:
required_status_checks:
# strict means "Require branches to be up-to-date before merging".
strict: true
# contexts are the names of checks that must pass
contexts:
- build (8)
- build (11)
required_pull_request_reviews:
dismiss_stale_reviews: true
require_code_owner_reviews: false
required_approving_review_count: 2

notifications:
pullrequests_status: [email protected]
# Note: before use the config, we should ensure the "mail" address has set well (exist)
#pullrequests_comment: [email protected]
#issues: [email protected]
#discussions: [email protected]
31 changes: 31 additions & 0 deletions hugegraph-commons/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true

[*.{java, xml, py}]
indent_style = space
indent_size = 4

[*.{java, xml}]
# Ignore the IDEA unsupported warning & it works well (indeed)
continuation_indent_size = 8
8 changes: 8 additions & 0 deletions hugegraph-commons/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# ignore when package to source.tgz
.github/ export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.asf.yaml export-ignore
apache-release.sh export-ignore

hugegraph-dist/scripts export-ignore
96 changes: 96 additions & 0 deletions hugegraph-commons/.github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
name: Bug report (反馈 Bug)
VGalaxies marked this conversation as resolved.
Show resolved Hide resolved
VGalaxies marked this conversation as resolved.
Show resolved Hide resolved
description: Create a bug report to help HugeGraph improve
title: '[Bug] describe the main problem'
labels:
- bug

body:
- type: markdown
attributes:
value: >-
### Note (特别注意) :

> 1. 请先**搜索**现有的[Server-Issues](https://github.com/apache/hugegraph/issues) 与
[Commons-Issues](https://github.com/apache/hugegraph-commons/issues) 中没有与您相同
/ 相关的问题 (请勿重复提交)

> 2. 我们需要尽可能**详细**的信息来**复现**问题, 越详细的信息 (包括**日志 / 截图 / 配置**等)
会**越快**被响应和处理

> 3. Issue 标题请保持原有模板分类(例如:`[Bug]`), 长段描述之间可以增加`空行`或使用`序号`标记, 保持排版清晰

> 4. 请在对应的模块提交 issue, 缺乏有效信息 / 长时间 (> 14 天) 没有回复的 issue 可能会被 **关闭**
(更新时会再开启)

- type: dropdown
attributes:
label: Bug Type (问题类型)
options:
- exception / error (异常报错)
- logic (逻辑设计问题)
- performance (性能下降)
- others (please edit later)

- type: checkboxes
attributes:
label: Before submit
options:
- label: 我已经确认现有的 [Server-Issues](https://github.com/apache/hugegraph/issues) 与 [Commons-Issues](https://github.com/apache/hugegraph-commons/issues) 中没有相同 / 重复问题
required: true

- type: textarea
attributes:
label: Environment (环境信息)
description: |
> server version could get from [rest-api](https://hugegraph.apache.org/docs/clients/restful-api/) (http://localhost:8080/versions)
value: |
- Server Version: v0.11.x
- Common Version: v1.x
validations:
required: true

- type: textarea
attributes:
label: Expected & Actual behavior (期望与实际表现)
description: |
> we can refer [How to create a minimal reproducible Example](https://stackoverflow.com/help/minimal-reproducible-example) (如何提供最简的可复现用例)
> if possible, please provide screenshots or GIF (请提供清晰的截图, 动图录屏更佳)
placeholder: |
type the main problem here

```java
// Exception / Error info (尽可能详细的日志 + 完整异常栈)

```
validations:
required: true

- type: textarea
attributes:
label: Vertex/Edge example (问题点 / 边数据举例)
description: |
> 如果问题与具体的点 / 边数据相关, 请提供完整的`查询语句 + 返回 JSON 结果`
placeholder: |
// Query URL
GET http://localhost:8080/gremlin?gremlin=hugegraph.traversal().V('1:tom')

// JSON of Vertex / Edge
{
"vertex": { "id": "xxx" }
}
render: javascript

- type: textarea
attributes:
label: Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
description: |
> 如果问题与具体的点类型 / 边类型 / 索引类型相关, 请提供完整的 `Schema 返回 JSON 结果`
placeholder: |
// Query URL
GET http://localhost:8080/graphs/hugegraph/schema/vertexlabels

// JSON of GraphSchema
{
"vertex": { "id": "xxx" }
}
render: javascript
7 changes: 7 additions & 0 deletions hugegraph-commons/.github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
blank_issues_enabled: false
VGalaxies marked this conversation as resolved.
Show resolved Hide resolved
VGalaxies marked this conversation as resolved.
Show resolved Hide resolved

# 设置提 issue 前的参考文档
contact_links:
- name: HugeGraph API Doc
url: https://hugegraph.apache.org/docs/clients/
about: Please search usage here before opening a new issue
15 changes: 15 additions & 0 deletions hugegraph-commons/.github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Feature request (新需求 / 功能)
VGalaxies marked this conversation as resolved.
Show resolved Hide resolved
VGalaxies marked this conversation as resolved.
Show resolved Hide resolved
description: Give an idea for HugeGraph
title: '[Feature] describe the new feature'
labels:
- feature

body:
- type: textarea
attributes:
label: Feature Description (功能描述)
description: |
> 请简要描述新功能 / 需求的使用场景或上下文, 最好能给个具体的例子说明
placeholder: type the feature description here
validations:
required: true
94 changes: 94 additions & 0 deletions hugegraph-commons/.github/ISSUE_TEMPLATE/question_ask.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
name: Ask question (提问)
VGalaxies marked this conversation as resolved.
Show resolved Hide resolved
VGalaxies marked this conversation as resolved.
Show resolved Hide resolved
description: Question about usage or configs in HugeGraph
title: '[Question] describe your problem'

body:
- type: markdown
attributes:
value: >-
### Note (特别注意) :

> 1. 请先**搜索**现有的[Server-Issues](https://github.com/apache/hugegraph/issues) 与
[Commons-Issues](https://github.com/apache/hugegraph-commons/issues) 中没有与您相同
/ 相关的问题 (请勿重复提交)

> 2. 我们需要尽可能**详细**的信息来**复现**问题, 越详细的信息 (包括**日志 / 截图 / 配置**等)
会**越快**被响应和处理

> 3. Issue 标题请保持原有模板分类(例如:`[Bug]`), 长段描述之间可以增加`空行`或使用`序号`标记, 保持排版清晰

> 4. 请在对应的模块提交 issue, 缺乏有效信息 / 长时间 (> 14 天) 没有回复的 issue 可能会被 **关闭**
(更新时会再开启)

- type: dropdown
attributes:
label: Problem Type (问题类型)
options:
- struct / logic (架构 / 逻辑设计问题)
- performance (性能优化)
- exception / error (异常报错)
- others (please edit later)

- type: checkboxes
attributes:
label: Before submit
options:
- label: 我已经确认现有的 [Server-Issues](https://github.com/apache/hugegraph/issues) 与 [Commons-Issues](https://github.com/apache/hugegraph-commons/issues) 中没有相同 / 重复问题
required: true

- type: textarea
attributes:
label: Environment (环境信息)
description: |
> server version could get from [rest-api](https://hugegraph.apache.org/docs/clients/restful-api/) (http://localhost:8080/versions)
value: |
- Server Version: v0.11.x
- Common Version: v1.x
validations:
required: true

- type: textarea
attributes:
label: Your Question (问题描述)
description: |
> 图使用 / 配置相关问题,请优先参考 [REST-API 文档](https://hugegraph.apache.org/docs/clients/restful-api/), 以及 [Server 配置文档](https://hugegraph.apache.org/docs/config/config-option/)
> if possible, please provide screenshots or GIF (请提供清晰的截图, 动图录屏更佳)
placeholder: |
type the main problem here

```java
// Exception / Error info (尽可能详细的日志 + 完整异常栈)

```
validations:
required: true

- type: textarea
attributes:
label: Vertex/Edge example (问题点 / 边数据举例)
description: |
> 如果问题与具体的点 / 边数据相关, 请提供完整的`查询语句 + 返回 JSON 结果`
placeholder: |
// Query URL
GET http://localhost:8080/gremlin?gremlin=hugegraph.traversal().V('1:tom')

// JSON of Vertex / Edge
{
"vertex": { "id": "xxx" }
}
render: javascript

- type: textarea
attributes:
label: Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
description: |
> 如果问题与具体的点类型 / 边类型 / 索引类型相关, 请提供完整的 `Schema 返回 JSON 结果`
placeholder: |
// Query URL
GET http://localhost:8080/graphs/hugegraph/schema/vertexlabels

// JSON of GraphSchema
{
"vertex": { "id": "xxx" }
}
render: javascript
11 changes: 11 additions & 0 deletions hugegraph-commons/.github/outdated/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
language: java
VGalaxies marked this conversation as resolved.
Show resolved Hide resolved
VGalaxies marked this conversation as resolved.
Show resolved Hide resolved

jdk:
- openjdk8

install: mvn compile -Dmaven.javadoc.skip=true

script: mvn test -Dtest=UnitTestSuite

after_success:
- bash <(curl -s https://codecov.io/bash)
35 changes: 35 additions & 0 deletions hugegraph-commons/.github/outdated/cla.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "CLA Assistant"
VGalaxies marked this conversation as resolved.
Show resolved Hide resolved
VGalaxies marked this conversation as resolved.
Show resolved Hide resolved
on:
issue_comment:
types: [created]
pull_request_target:
types: [opened,closed,synchronize]

jobs:
CLAssistant:
runs-on: ubuntu-latest
steps:
- name: "CLA Assistant"
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
uses: cla-assistant/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# the below token should have repo scope and must be manually added by you in the repository's secret
PERSONAL_ACCESS_TOKEN : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
with:
path-to-signatures: '.github/cla-signatures/cla.json'
path-to-document: 'https://github.com/hugegraph/hugegraph-doc/blob/master/CLA.md' # e.g. a CLA or a DCO document
custom-allsigned-prcomment: '**Good**! All Contributors have signed the [CLA](https://github.com/hugegraph/hugegraph-doc/blob/master/CLA.md).'
# branch should not be protected
branch: 'cla-assist'
allowlist: bot*
lock-pullrequest-aftermerge: false

# the following are the optional inputs - If the optional inputs are not given, then default values will be taken
#remote-organization-name: enter the remote organization name where the signatures should be stored (Default is storing the signatures in the same repository)
#remote-repository-name: enter the remote repository name where the signatures should be stored (Default is storing the signatures in the same repository)
#create-file-commit-message: 'For example: Creating file for storing CLA Signatures'
#signed-commit-message: 'For example: $contributorName has signed the CLA in #$pullRequestNo'
#custom-notsigned-prcomment: 'pull request comment with Introductory message to ask new contributors to sign'
#custom-pr-sign-comment: 'The signature to be committed in order to sign the CLA'
#use-dco-flag: true - If you are using DCO instead of CLA
39 changes: 39 additions & 0 deletions hugegraph-commons/.github/outdated/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: release maven package
VGalaxies marked this conversation as resolved.
Show resolved Hide resolved
VGalaxies marked this conversation as resolved.
Show resolved Hide resolved

on:
release:
types: [ published ]

jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Install JDK 8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'zulu'

- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 2

- name: Release Maven package
uses: samuelmeuli/action-maven-publish@v1
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}
nexus_username: ${{ secrets.NEXUS_USERNAME }}
nexus_password: ${{ secrets.NEXUS_PASSWORD }}
server_id: sonatype-nexus-staging
maven_profiles: "release"
maven_args: >
-Dmaven.test.skip=true
Loading
Loading