Dgraph v24.0.0-alpha3
##What's Changed The following is the list of the changes that we have made from v24.0.0-alpha2 to v24.0.0-alpha3. This is an alpha release for community feedback.
#Added Feat(graphql): Add vector support to graphql (https://github.com/dgraph-io/dgraph/pull/9074)
Dgraph v24.0.0-alpha2
The following is the list of the changes that we have made from v23.1 to v24-alpha. This is an alpha release for community feedback.
-
Vector
- feat(vector): add vector to schema in https://github.com/dgraph-io/dgraph/pull/9060
- feat(vector): Added similar_to in vector in https://github.com/dgraph-io/dgraph/pull/9062
- feat(vector): Add vector type to Dgraph in https://github.com/dgraph-io/dgraph/pull/9050
- feat(vector): fix live loader and add tests for dropall, drop namespace, live load in https://github.com/dgraph-io/dgraph/pull/9063
- fix(vector): show error is invalid input is provided to vector predicate in https://github.com/dgraph-io/dgraph/pull/9064
-
GraphQL
- feat(vector): Added lang support by in https://github.com/dgraph-io/dgraph/pull/8924
- feat(graphql): allow updatable and nullable id fields. (#7736) in https://github.com/dgraph-io/dgraph/pull/9020
-
Core
- feat(core): add unique constraint support in schema for new predicates in https://github.com/dgraph-io/dgraph/pull/8827
- feat(debug): add parse_key to debug tool in https://github.com/dgraph-io/dgraph/pull/7640
- feat(acl): support more JWT algorithms for ACL by in https://github.com/dgraph-io/dgraph/pull/8912
- feat(restore): add support for namespace aware restore by in https://github.com/dgraph-io/dgraph/pull/8968
-
Core
- fix(core): Fixed deadlock that happens due to timeout in https://github.com/dgraph-io/dgraph/pull/9007
- fix(core): limit #edges using LimitMutationsNquad config and add logs in https://github.com/dgraph-io/dgraph/pull/9010
- fix(core): Update math parsing function by in https://github.com/dgraph-io/dgraph/pull/9053
- chore(deps): upgrade etcd/raft to v3 by in https://github.com/dgraph-io/dgraph/pull/7688
- chore(restore): add more logs for restore request (#8050) in https://github.com/dgraph-io/dgraph/pull/8975
- fix(restore): use different map directory for each group (#8047) in https://github.com/dgraph-io/dgraph/pull/8972
- fix(export): Support for any s3 endpoint by in https://github.com/dgraph-io/dgraph/pull/8978
- fix(restore): use custom type for sensitive fields by in https://github.com/dgraph-io/dgraph/pull/8969
- fix(export): Escape MySQL column names in https://github.com/dgraph-io/dgraph/pull/8961
- fix(debug): fix debug tool for schema keys in https://github.com/dgraph-io/dgraph/pull/7939
- fix(restore): allow incrementalFrom to be 1 in restore API by in https://github.com/dgraph-io/dgraph/pull/8988
- fix(raft):alpha leader fails to stream snapshot to new alpha nodes in https://github.com/dgraph-io/dgraph/pull/9022
- fix(query): fix has function in filter in https://github.com/dgraph-io/dgraph/pull/9043
- fix(core):Reduce x.ParsedKey memory allocation from 72 to 56 bytes by optimizing struct memory alignment in https://github.com/dgraph-io/dgraph/pull/9047
- fix(restore): do not retry restore proposal (#8058) in https://github.com/dgraph-io/dgraph/pull/9017
-
Perf
- perf(query): use quickselect instead of sorting while pagination by in https://github.com/dgraph-io/dgraph/pull/8995
- perf(query): Update CompressedBin IntersectionAlgo by in https://github.com/dgraph-io/dgraph/pull/9000
-
Chore
- upgrade(go): update go version to 1.22 in https://github.com/dgraph-io/dgraph/pull/9058
- chore(deps): bump github.com/apache/thrift from 0.12.0 to 0.13.0 by in https://github.com/dgraph-io/dgraph/pull/8982
- chore(deps): bump golang.org/x/net from 0.14.0 to 0.17.0 in https://github.com/dgraph-io/dgraph/pull/9015
- chore(deps): use bleve 2.3.10 for more languages in full text search in https://github.com/dgraph-io/dgraph/pull/9030
- chore(deps): bump golang.org/x/crypto from 0.12.0 to 0.17.0 in https://github.com/dgraph-io/dgraph/pull/9032
- chore(deps): bump urllib3 from 1.26.5 to 1.26.18 in /contrib/config/marketplace/aws/tests in https://github.com/dgraph-io/dgraph/pull/9018
- chore(deps): bump google.golang.org/grpc from 1.56.2 to 1.56.3 in https://github.com/dgraph-io/dgraph/pull/9024
- chore(deps): bump google.golang.org/protobuf from 1.31.0 to 1.33.0in https://github.com/dgraph-io/dgraph/pull/9051
v23.1.0
Remarks
In Badger PR #1948 we have updated and fixed certain metrics in Badger. These name changes will also be reflected in this Dgraph version.
Added
-
Core Dgraph
- perf(query): Improve IntersectCompressedWithBin for UID Pack (#8941)
- feat(query): add feature flag normalize-compatibility-mode (#8845) (#8929)
- feat(alpha): support RDF response via http query request (#8004) (#8639)
- perf(query): speed up parsing of a huge query (#8942)
- fix(live): replace panic in live loader with errors (#7798) (#8944)
-
GraphQL
- feat(graphql): This PR allows @id field in interface to be unique across all implementing types (#8876)
Fixed
-
Core Dgraph
- docs(zero): add comments in zero and clarify naming (#8945)
- fix(cdc): skip bad events in CDC (#8076)
- fix(bulk): enable running bulk loader with only gql schema (#8903)
- chore(badger): upgrade badger to v4.2.0 (#8932) (#8925)
- doc(restore): add docs for mutations in between incremental restores (#8908)
- chore: fix compilation on 32bit (#8895)
- chore(raft): add debug logs to print all transactions (#8890)
- chore(alpha): add logs for processing entries in applyCh (#8930)
- fix(acl): allow data deletion for non-reserved predicates (#8937)
- fix(alpha): convert numbers correctly in superflags (#7712) (#8943)
- chore(raft): better logging message for cleaning banned ns pred (#7886)
-
Security
- sec(acl): convert x.Sensitive to string type for auth hash (#8931)
- chore(deps): bump google.golang.org/grpc from 1.52.0 to 1.53.0 (#8900)
- chore(deps): bump certifi from 2022.12.7 to 2023.7.22 in /contrib/config/marketplace/aws/tests (#8920)
- chore(deps): bump certifi from 2022.12.7 to 2023.7.22 in /contrib/embargo (#8921)
- chore(deps): bump pygments from 2.7.4 to 2.15.0 in /contrib/embargo (#8913)
- chore: upgrade bleve to v2.3.9 (#8948)
-
CI & Testing
- chore: update cron job frequency to reset github notifications (#8956)
- test(upgrade): add v20.11 upgrade tests in query package (#8954)
- chore(contrib) - fixes for Vault (#7739)
- chore(build): make build codename configurable (#8951)
- fix(upgrade): look for version string in logs bottom up (#8926)
- fix(upgrade): check commit SHA to find running dgraph version (#8923)
- chore(upgrade): run upgrade tests for v23.0.1 (#8918)
- chore(upgrade): ensure we run right version of Dgraph (#8910)
- chore(upgrade): add workaround for multiple groot issue in export-import (#8897)
- test(upgrade): add upgrade tests for systest/license package (#8902)
- chore(upgrade): increase the upgrade job duration limit to 12h (#8907)
- chore(upgrade): increase the duration of the CI workflow (#8906)
- ci(upgrade): break down upgrade tests CI workflow (#8904)
- test(acl): add upgrade tests for ee/acl package (#8792)
- chore: update pull request template (#8899)
v23.1.0-rc1
Added
-
Core Dgraph
- perf(query): Improve IntersectCompressedWithBin for UID Pack (#8941)
- feat(query): add feature flag normalize-compatibility-mode (#8845) (#8929)
- feat(alpha): support RDF response via http query request (#8004) (#8639)
-
GraphQL
- feat(graphql): This PR allows @id field in interface to be unique across all implementing types (#8876)
- fix(graphql): upgrade gqlparser to v2.2.2 (#8917)
Fixed
-
Core Dgraph
- fix(bulk): enable running bulk loader with only gql schema (#8903)
- chore(badger): upgrade badger to v4.2.0 (#8932) (#8925)
- doc(restore): add docs for mutations in between incremental restores (#8908)
- chore: fix compilation on 32bit (#8895)
- chore(raft): add debug logs to print all transactions (#8890)
- chore(alpha): add logs for processing entries in applyCh (#8930)
-
Security
- sec(acl): convert x.Sensitive to string type for auth hash (#8931)
- chore(deps): bump google.golang.org/grpc from 1.52.0 to 1.53.0 (#8900)
- chore(deps): bump certifi from 2022.12.7 to 2023.7.22 in /contrib/config/marketplace/aws/tests (#8920)
- chore(deps): bump certifi from 2022.12.7 to 2023.7.22 in /contrib/embargo (#8921)
- chore(deps): bump pygments from 2.7.4 to 2.15.0 in /contrib/embargo (#8913)
-
CI & Testing
- fix(upgrade): look for version string in logs bottom up (#8926)
- fix(upgrade): check commit SHA to find running dgraph version (#8923)
- chore(upgrade): run upgrade tests for v23.0.1 (#8918)
- chore(upgrade): ensure we run right version of Dgraph (#8910)
- chore(upgrade): add workaround for multiple groot issue in export-import (#8897)
- test(upgrade): add upgrade tests for systest/license package (#8902)
- chore(upgrade): increase the upgrade job duration limit to 12h (#8907)
- chore(upgrade): increase the duration of the CI workflow (#8906)
- ci(upgrade): break down upgrade tests CI workflow (#8904)
- test(acl): add upgrade tests for ee/acl package (#8792)
- chore: update pull request template (#8899)
Dgraph v23.0.1
Fixed
-
Core Dgraph
- chore(restore): add log message when restore fails (#8893)
- fix(zero): fix zero's health endpoint to return json response (#8858)
- chore(zero): improve error message while unmarshalling WAL (#8882)
- fix(multi-tenancy): check existence before banning namespace (#7887)
- fix(bulk): removed buffer max size (#8841)
- chore: fix failing oss build (#8832) Fixes #8831
- upgrade dgo to v230.0.1 (#8785)
-
CI
- ci(dql): add workflow for fuzz testing (#8874)
- chore(ci): add workflow for OSS build + unit tests (#8834)
-
Security
- chore(deps): bump requests from 2.23.0 to 2.31.0 in /contrib/config/marketplace/aws/tests (#8836)
- chore(deps): bump requests from 2.23.0 to 2.31.0 in /contrib/embargo (#8835)
- chore(deps): bump github.com/docker/distribution from 2.8.0+incompatible to 2.8.2+incompatible (#8821)
- chore(deps): bump github.com/cloudflare/circl from 1.1.0 to 1.3.3 (#8822)
Dgraph v23.0.0
Added
GraphQL
- fix(GraphQL): pass on HTTP request headers for subscriptions (https://github.com/dgraph-io/dgraph/pull/8574)
Core Dgraph
- feat(metrics): add badger metrics (#8034) (https://github.com/dgraph-io/dgraph/pull/8737)
- feat(restore): introduce incremental restore (#7942) (https://github.com/dgraph-io/dgraph/pull/8624)
- chore(debug): add
only-summary
flag indgraph debug
to show LSM tree and namespace size (https://github.com/dgraph-io/dgraph/pull/8516) - feat(cloud): add
shared-instance
flag in limit superflag in alpha (https://github.com/dgraph-io/dgraph/pull/8625) - chore(deps): update prometheus dependency, adds new metrics (https://github.com/dgraph-io/dgraph/pull/8655)
- feat(cdc): add superflag
tls
to enable TLS without CA or certs (https://github.com/dgraph-io/dgraph/pull/8564) - feat(multitenancy): namespace aware drop data (https://github.com/dgraph-io/dgraph/pull/8511)
Fixed
GragphQL
- fix(GraphQL): nested Auth Rules not working properly (https://github.com/dgraph-io/dgraph/pull/8571)
Core Dgraph
- Fix wal replay issue during rollup (https://github.com/dgraph-io/dgraph/pull/8774)
- security(logging): fix aes implementation in audit logging (https://github.com/dgraph-io/dgraph/pull/8323)
- chore(worker): unify mapper receiver names (https://github.com/dgraph-io/dgraph/pull/8740)
- fix(dql): fix panic in parsing of regexp (https://github.com/dgraph-io/dgraph/pull/8739)
- fix(Query): Do an error check before bubbling up nil error (https://github.com/dgraph-io/dgraph/pull/8769)
- chore: replace global index with local one & fix typos (https://github.com/dgraph-io/dgraph/pull/8719)
- chore(logs): add logs to track dropped proposals (https://github.com/dgraph-io/dgraph/pull/8568)
- fix(debug): check length of wal entry before parsing (https://github.com/dgraph-io/dgraph/pull/8560)
- opt(schema): optimize populateSchema() (https://github.com/dgraph-io/dgraph/pull/8565)
- fix(zero): fix update membership to make bulk tablet proposal instead of multiple small (https://github.com/dgraph-io/dgraph/pull/8573)
- fix(groot): do not upsert groot for all namespaces on restart (https://github.com/dgraph-io/dgraph/pull/8561)
- fix(restore): set kv version to restoreTs for all keys (https://github.com/dgraph-io/dgraph/pull/8563)
- fix(probe): do not contend for lock in lazy load (https://github.com/dgraph-io/dgraph/pull/8566)
- fix(core): fixed infinite loop in CommitToDisk (https://github.com/dgraph-io/dgraph/pull/8614)
- fix(proposals): incremental proposal key for zero proposals (https://github.com/dgraph-io/dgraph/pull/8567)
- fix(zero): fix waiting for random time while rate limiting (https://github.com/dgraph-io/dgraph/pull/8656)
- chore(deps): upgrade badger (https://github.com/dgraph-io/dgraph/pull/8654, https://github.com/dgraph-io/dgraph/pull/8658)
- opt(schema): load schema and types using Stream framework (https://github.com/dgraph-io/dgraph/pull/8562)
- fix(backup): use StreamWriter instead of KVLoader during backup restore (https://github.com/dgraph-io/dgraph/pull/8510)
- fix(audit): fixing audit logs for websocket connections (https://github.com/dgraph-io/dgraph/pull/8627)
- fix(restore): consider the banned namespaces while bumping (https://github.com/dgraph-io/dgraph/pull/8559)
- fix(backup): create directory before writing backup (https://github.com/dgraph-io/dgraph/pull/8638)
Test
- chore(tests): add upgrade tests in query package (https://github.com/dgraph-io/dgraph/pull/8750)
- simplify test setup in query package (https://github.com/dgraph-io/dgraph/pull/8782)
- add a test for incremental restore (https://github.com/dgraph-io/dgraph/pull/8754)
- chore(tests): run tests in query package against dgraph cloud (https://github.com/dgraph-io/dgraph/pull/8726)
- fix the backup test cluster compose file (https://github.com/dgraph-io/dgraph/pull/8775)
- cleanup tests to reduce the scope of err var (https://github.com/dgraph-io/dgraph/pull/8771)
- use t.TempDir() for using a temp dir in tests (https://github.com/dgraph-io/dgraph/pull/8772)
- fix(test): clan cruft from test run (https://github.com/dgraph-io/dgraph/pull/8348)
- chore(tests): avoid calling os.Exit in TestMain (https://github.com/dgraph-io/dgraph/pull/8765)
- chore: fix linter issue on main (https://github.com/dgraph-io/dgraph/pull/8749)
- recreate the context variable for parallel test (https://github.com/dgraph-io/dgraph/pull/8748)
- fix(tests): wait for license to be applied before trying to login (https://github.com/dgraph-io/dgraph/pull/8744)
- fix(tests): sleep longer so that ACLs are updated (https://github.com/dgraph-io/dgraph/pull/8745)
- chore(test): use pointer receiver for LocalCluster methods (https://github.com/dgraph-io/dgraph/pull/8734)
- chore(linter): fix unconvert linter issues on linux (https://github.com/dgraph-io/dgraph/pull/8718)
- chore(linter): add unconvert linter and address related issues (https://github.com/dgraph-io/dgraph/pull/8685)
- chore(ci): resolve community PR goveralls failure (https://github.com/dgraph-io/dgraph/pull/8716)
- chore(test): increased iterations of the health check (https://github.com/dgraph-io/dgraph/pull/8711)
- fix(test): avoid host volume mount in minio container (https://github.com/dgraph-io/dgraph/pull/8569)
- chore(test): add tests for lex/iri.go,chunker/chunk.go (https://github.com/dgraph-io/dgraph/pull/8515)
- chore(test): add Backup/Restore test for NFS (https://github.com/dgraph-io/dgraph/pull/8551)
- chore(test): add test that after snapshot is applied, GraphQL schema is refreshed (https://github.com/dgraph-io/dgraph/pull/8619)
- chore(test): upgrade graphql tests to use go 1.19 (https://github.com/dgraph-io/dgraph/pull/8662)
- chore(test): add automated test to test multitenant --limit flag (https://github.com/dgraph-io/dgraph/pull/8646)
- chore(test): add restore test for more than 127 namespaces (https://github.com/dgraph-io/dgraph/pull/8643)
- fix(test): fix the corner case for raft entries test (https://github.com/dgraph-io/dgraph/pull/8617)
CD
- fix(build): update dockerfile to use cache busting and reduce image size (https://github.com/dgraph-io/dgraph/pull/8652)
- chore(deps): update min go build version (https://github.com/dgraph-io/dgraph/pull/8423)
- chore(cd): add badger binary to dgraph docker image (https://github.com/dgraph-io/dgraph/pull/8790)
Security
chore(deps): bump certifi from 2020.4.5.1 to 2022.12.7 in /contrib/config/marketplace/aws/tests (https://github.com/dgraph-io/dgraph/pull/8496)
chore(deps): bump github.com/docker/distribution from 2.7.1+incompatible to 2.8.0+incompatible (https://github.com/dgraph-io/dgraph/pull/8575)
chore(deps): bump werkzeug from 0.16.1 to 2.2.3 in /contrib/embargo (https://github.com/dgraph-io/dgraph/pull/8676)
fix(sec): upgrade networkx to (https://github.com/dgraph-io/dgraph/pull/8613)
-
CVE Fixes (31 total)
- CVE-2013-4235
- CVE-2016-20013
- CVE-2016-2781
- CVE-2017-11164
- CVE-2021-36222
- CVE-2021-37750
- CVE-2021-39537
- CVE-2021-44758
- CVE-2022-28321
- CVE-2022-29458
- CVE-2022-3219
- CVE-2022-3437
- CVE-2022-3821
- CVE-2022-41717
- CVE-2022-41721
- CVE-2022-41723
- CVE-2022-42898
- CVE-2022-4304
- CVE-2022-43552
- CVE-2022-4415
- CVE-2022-4450
- CVE-2022-44640
- CVE-2022-48303
- CVE-2023-0215
- CVE-2023-0286
- CVE-2023-0361
- CVE-2023-0464
- CVE-2023-0465
- CVE-2023-0466
- CVE-2023-23916
- CVE-2023-26604
Changed
Core Dgraph
- upgrade badger to v4.1.0 (https://github.com/dgraph-io/dgraph/pull/8783) (https://github.com/dgraph-io/dgraph/pull/8709)
- fix(multitenancy) store namespace in predicate as a hex separated by a hyphen to prevent json marshal issues (https://github.com/dgraph-io/dgraph/pull/8601)
- fix(query): handle bad timezone correctly (https://github.com/dgraph-io/dgraph/pull/8657)
- chore(ludicroud): remove ludicrous mode from the code (https://github.com/dgraph-io/dgraph/pull/8612)
- fix(backup): make the /admin/backup and /admin/export API asynchronous (https://github.com/dgraph-io/dgraph/pull/8554)
- fix(mutation): validate mutation before applying it (https://github.com/dgraph-io/dgraph/pull/8623)
CI Enhancements
- fix(ci): unpin curl (https://github.com/dgraph-io/dgraph/pull/8577)
- fix(ci): adjust cron schedules (https://github.com/dgraph-io/dgraph/pull/8592)
- chore(ci): Capture coverage from bulk load and LDBC tests (https://github.com/dgraph-io/dgraph/pull/8478)
- chore(linter): enable gosec linter (https://github.com/dgraph-io/dgraph/pull/8678)
- chore: apply go vet improvements (https://github.com/dgraph-io/dgraph/pull/8620)
- chore(linter): fix some of the warnings from gas linter (https://github.com/dgraph-io/dgraph/pull/8664)
- chore(linter): fix golangci config and some issues in tests (https://github.com/dgraph-io/dgraph/pull/8669)
- fix(linter): address gosimple linter reports & errors (https://github.com/dgraph-io/dgraph/pull/8628)
Dgraph v23.0.0-rc1
Added
GraphQL
- fix(GraphQL): pass on HTTP request headers for subscriptions (https://github.com/dgraph-io/dgraph/pull/8574)
Core Dgraph
- feat(metrics): add badger metrics (#8034) (https://github.com/dgraph-io/dgraph/pull/8737)
- feat(restore): introduce incremental restore (#7942) (https://github.com/dgraph-io/dgraph/pull/8624)
- chore(debug): add
only-summary
flag indgraph debug
to show LSM tree and namespace size (https://github.com/dgraph-io/dgraph/pull/8516) - feat(cloud): add
shared-instance
flag in limit superflag in alpha (https://github.com/dgraph-io/dgraph/pull/8625) - chore(deps): update prometheus dependency, adds new metrics (https://github.com/dgraph-io/dgraph/pull/8655)
- feat(cdc): add superflag
tls
to enable TLS without CA or certs (https://github.com/dgraph-io/dgraph/pull/8564) - feat(multitenancy): namespace aware drop data (https://github.com/dgraph-io/dgraph/pull/8511)
Fixed
GragphQL
- fix(GraphQL): nested Auth Rules not working properly (https://github.com/dgraph-io/dgraph/pull/8571)
Core Dgraph
- Fix wal replay issue during rollup (https://github.com/dgraph-io/dgraph/pull/8774)
- security(logging): fix aes implementation in audit logging (https://github.com/dgraph-io/dgraph/pull/8323)
- chore(worker): unify mapper receiver names (https://github.com/dgraph-io/dgraph/pull/8740)
- fix(dql): fix panic in parsing of regexp (https://github.com/dgraph-io/dgraph/pull/8739)
- fix(Query): Do an error check before bubbling up nil error (https://github.com/dgraph-io/dgraph/pull/8769)
- chore: replace global index with local one & fix typos (https://github.com/dgraph-io/dgraph/pull/8719)
- chore(logs): add logs to track dropped proposals (https://github.com/dgraph-io/dgraph/pull/8568)
- fix(debug): check length of wal entry before parsing (https://github.com/dgraph-io/dgraph/pull/8560)
- opt(schema): optimize populateSchema() (https://github.com/dgraph-io/dgraph/pull/8565)
- fix(zero): fix update membership to make bulk tablet proposal instead of multiple small (https://github.com/dgraph-io/dgraph/pull/8573)
- fix(groot): do not upsert groot for all namespaces on restart (https://github.com/dgraph-io/dgraph/pull/8561)
- fix(restore): set kv version to restoreTs for all keys (https://github.com/dgraph-io/dgraph/pull/8563)
- fix(probe): do not contend for lock in lazy load (https://github.com/dgraph-io/dgraph/pull/8566)
- fix(core): fixed infinite loop in CommitToDisk (https://github.com/dgraph-io/dgraph/pull/8614)
- fix(proposals): incremental proposal key for zero proposals (https://github.com/dgraph-io/dgraph/pull/8567)
- fix(zero): fix waiting for random time while rate limiting (https://github.com/dgraph-io/dgraph/pull/8656)
- chore(deps): upgrade badger (https://github.com/dgraph-io/dgraph/pull/8654, https://github.com/dgraph-io/dgraph/pull/8658)
- opt(schema): load schema and types using Stream framework (https://github.com/dgraph-io/dgraph/pull/8562)
- fix(backup): use StreamWriter instead of KVLoader during backup restore (https://github.com/dgraph-io/dgraph/pull/8510)
- fix(audit): fixing audit logs for websocket connections (https://github.com/dgraph-io/dgraph/pull/8627)
- fix(restore): consider the banned namespaces while bumping (https://github.com/dgraph-io/dgraph/pull/8559)
- fix(backup): create directory before writing backup (https://github.com/dgraph-io/dgraph/pull/8638)
Test
- chore(tests): add upgrade tests in query package (https://github.com/dgraph-io/dgraph/pull/8750)
- simplify test setup in query package (https://github.com/dgraph-io/dgraph/pull/8782)
- add a test for incremental restore (https://github.com/dgraph-io/dgraph/pull/8754)
- chore(tests): run tests in query package against dgraph cloud (https://github.com/dgraph-io/dgraph/pull/8726)
- fix the backup test cluster compose file (https://github.com/dgraph-io/dgraph/pull/8775)
- cleanup tests to reduce the scope of err var (https://github.com/dgraph-io/dgraph/pull/8771)
- use t.TempDir() for using a temp dir in tests (https://github.com/dgraph-io/dgraph/pull/8772)
- fix(test): clan cruft from test run (https://github.com/dgraph-io/dgraph/pull/8348)
- chore(tests): avoid calling os.Exit in TestMain (https://github.com/dgraph-io/dgraph/pull/8765)
- chore: fix linter issue on main (https://github.com/dgraph-io/dgraph/pull/8749)
- recreate the context variable for parallel test (https://github.com/dgraph-io/dgraph/pull/8748)
- fix(tests): wait for license to be applied before trying to login (https://github.com/dgraph-io/dgraph/pull/8744)
- fix(tests): sleep longer so that ACLs are updated (https://github.com/dgraph-io/dgraph/pull/8745)
- chore(test): use pointer receiver for LocalCluster methods (https://github.com/dgraph-io/dgraph/pull/8734)
- chore(linter): fix unconvert linter issues on linux (https://github.com/dgraph-io/dgraph/pull/8718)
- chore(linter): add unconvert linter and address related issues (https://github.com/dgraph-io/dgraph/pull/8685)
- chore(ci): resolve community PR goveralls failure (https://github.com/dgraph-io/dgraph/pull/8716)
- chore(test): increased iterations of the health check (https://github.com/dgraph-io/dgraph/pull/8711)
- fix(test): avoid host volume mount in minio container (https://github.com/dgraph-io/dgraph/pull/8569)
- chore(test): add tests for lex/iri.go,chunker/chunk.go (https://github.com/dgraph-io/dgraph/pull/8515)
- chore(test): add Backup/Restore test for NFS (https://github.com/dgraph-io/dgraph/pull/8551)
- chore(test): add test that after snapshot is applied, GraphQL schema is refreshed (https://github.com/dgraph-io/dgraph/pull/8619)
- chore(test): upgrade graphql tests to use go 1.19 (https://github.com/dgraph-io/dgraph/pull/8662)
- chore(test): add automated test to test multitenant --limit flag (https://github.com/dgraph-io/dgraph/pull/8646)
- chore(test): add restore test for more than 127 namespaces (https://github.com/dgraph-io/dgraph/pull/8643)
- fix(test): fix the corner case for raft entries test (https://github.com/dgraph-io/dgraph/pull/8617)
CD
- fix(build): update dockerfile to use cache busting and reduce image size (https://github.com/dgraph-io/dgraph/pull/8652)
- chore(deps): update min go build version (https://github.com/dgraph-io/dgraph/pull/8423)
- chore(cd): add badger binary to dgraph docker image (https://github.com/dgraph-io/dgraph/pull/8790)
Security
- chore(deps): bump certifi from 2020.4.5.1 to 2022.12.7 in /contrib/config/marketplace/aws/tests (https://github.com/dgraph-io/dgraph/pull/8496)
- chore(deps): bump github.com/docker/distribution from 2.7.1+incompatible to 2.8.0+incompatible (https://github.com/dgraph-io/dgraph/pull/8575)
- chore(deps): bump werkzeug from 0.16.1 to 2.2.3 in /contrib/embargo (https://github.com/dgraph-io/dgraph/pull/8676)
- fix(sec): upgrade networkx to (https://github.com/dgraph-io/dgraph/pull/8613)
- fix(sec): CVE-2022-41721 (https://github.com/dgraph-io/dgraph/pull/8633)
- fix(sec): CVE & OS Patching (https://github.com/dgraph-io/dgraph/pull/8634)
Changed
Core Dgraph
- upgrade badger to v4.1.0 (https://github.com/dgraph-io/dgraph/pull/8783) (https://github.com/dgraph-io/dgraph/pull/8709)
- fix(multitenancy) store namespace in predicate as a hex separated by a hyphen to prevent json marshal issues (https://github.com/dgraph-io/dgraph/pull/8601)
- fix(query): handle bad timezone correctly (https://github.com/dgraph-io/dgraph/pull/8657)
- chore(ludicroud): remove ludicrous mode from the code (https://github.com/dgraph-io/dgraph/pull/8612)
- fix(backup): make the /admin/backup and /admin/export API asynchronous (https://github.com/dgraph-io/dgraph/pull/8554)
- fix(mutation): validate mutation before applying it (https://github.com/dgraph-io/dgraph/pull/8623)
CI Enhancements
- fix(ci): unpin curl (https://github.com/dgraph-io/dgraph/pull/8577)
- fix(ci): adjust cron schedules (https://github.com/dgraph-io/dgraph/pull/8592)
- chore(ci): Capture coverage from bulk load and LDBC tests (https://github.com/dgraph-io/dgraph/pull/8478)
- chore(linter): enable gosec linter (https://github.com/dgraph-io/dgraph/pull/8678)
- chore: apply go vet improvements (https://github.com/dgraph-io/dgraph/pull/8620)
- chore(linter): fix some of the warnings from gas linter (https://github.com/dgraph-io/dgraph/pull/8664)
- chore(linter): fix golangci config and some issues in tests (https://github.com/dgraph-io/dgraph/pull/8669)
- fix(linter): address gosimple linter reports & errors (https://github.com/dgraph-io/dgraph/pull/8628)
Dgraph v23.0.0-beta1
Added
GraphQL
- fix(GraphQL): pass on HTTP request headers for subscriptions (https://github.com/dgraph-io/dgraph/pull/8574)
Core Dgraph
- chore(debug): add
only-summary
flag indgraph debug
to show LSM tree and namespace size (https://github.com/dgraph-io/dgraph/pull/8516) - feat(cloud): add
shared-instance
flag in limit superflag in alpha (https://github.com/dgraph-io/dgraph/pull/8625) - chore(deps): update prometheus dependency, adds new metrics (https://github.com/dgraph-io/dgraph/pull/8655)
- feat(cdc): add superflag
tls
to enable TLS without CA or certs (https://github.com/dgraph-io/dgraph/pull/8564) - chore(deps): bump badger up to v4 (https://github.com/dgraph-io/dgraph/pull/8709)
- feat(multitenancy): namespace aware drop data (https://github.com/dgraph-io/dgraph/pull/8511)
- chore(debug): add
Fixed
GragphQL
- fix(GraphQL): nested Auth Rules not working properly (https://github.com/dgraph-io/dgraph/pull/8571)
Core Dgraph
- chore(logs): add logs to track dropped proposals (https://github.com/dgraph-io/dgraph/pull/8568)
- fix(debug): check length of wal entry before parsing (https://github.com/dgraph-io/dgraph/pull/8560)
- opt(schema): optimize populateSchema() (https://github.com/dgraph-io/dgraph/pull/8565)
- fix(zero): fix update membership to make bulk tablet proposal instead of multiple small (https://github.com/dgraph-io/dgraph/pull/8573)
- fix(groot): do not upsert groot for all namespaces on restart (https://github.com/dgraph-io/dgraph/pull/8561)
- fix(restore): set kv version to restoreTs for all keys (https://github.com/dgraph-io/dgraph/pull/8563)
- fix(probe): do not contend for lock in lazy load (https://github.com/dgraph-io/dgraph/pull/8566)
- fix(core): fixed infinite loop in CommitToDisk (https://github.com/dgraph-io/dgraph/pull/8614)
- fix(proposals): incremental proposal key for zero proposals (https://github.com/dgraph-io/dgraph/pull/8567)
- fix(zero): fix waiting for random time while rate limiting (https://github.com/dgraph-io/dgraph/pull/8656)
- chore(deps): upgrade badger (https://github.com/dgraph-io/dgraph/pull/8654, https://github.com/dgraph-io/dgraph/pull/8658)
- opt(schema): load schema and types using Stream framework (https://github.com/dgraph-io/dgraph/pull/8562)
- fix(backup): use StreamWriter instead of KVLoader during backup restore (https://github.com/dgraph-io/dgraph/pull/8510)
- fix(audit): fixing audit logs for websocket connections (https://github.com/dgraph-io/dgraph/pull/8627)
- fix(restore): consider the banned namespaces while bumping (https://github.com/dgraph-io/dgraph/pull/8559)
- fix(backup): create directory before writing backup (https://github.com/dgraph-io/dgraph/pull/8638)
Test
- fix(test): avoid host volume mount in minio container (https://github.com/dgraph-io/dgraph/pull/8569)
- chore(test): add tests for lex/iri.go,chunker/chunk.go (https://github.com/dgraph-io/dgraph/pull/8515)
- chore(test): add Backup/Restore test for NFS (https://github.com/dgraph-io/dgraph/pull/8551)
- chore(test): add test that after snapshot is applied, GraphQL schema is refreshed (https://github.com/dgraph-io/dgraph/pull/8619)
- chore(test): upgrade graphql tests to use go 1.19 (https://github.com/dgraph-io/dgraph/pull/8662)
- chore(test): add automated test to test multitenant --limit flag (https://github.com/dgraph-io/dgraph/pull/8646)
- chore(test): add restore test for more than 127 namespaces (https://github.com/dgraph-io/dgraph/pull/8643)
- fix(test): fix the corner case for raft entries test (https://github.com/dgraph-io/dgraph/pull/8617)
CD
- fix(build): update dockerfile to use cache busting and reduce image size (https://github.com/dgraph-io/dgraph/pull/8652)
- chore(deps): update min go build version (https://github.com/dgraph-io/dgraph/pull/8423)
Security
- chore(deps): bump certifi from 2020.4.5.1 to 2022.12.7 in /contrib/config/marketplace/aws/tests (https://github.com/dgraph-io/dgraph/pull/8496)
- chore(deps): bump github.com/docker/distribution from 2.7.1+incompatible to 2.8.0+incompatible (https://github.com/dgraph-io/dgraph/pull/8575)
- chore(deps): bump werkzeug from 0.16.1 to 2.2.3 in /contrib/embargo (https://github.com/dgraph-io/dgraph/pull/8676)
- fix(sec): upgrade networkx to (https://github.com/dgraph-io/dgraph/pull/8613)
- fix(sec): CVE-2022-41721 (https://github.com/dgraph-io/dgraph/pull/8633)
- fix(sec): CVE & OS Patching (https://github.com/dgraph-io/dgraph/pull/8634)
Changed
Core Dgraph
- fix(multitenancy) store namespace in predicate as a hex separated by a hyphen to prevent json marshal issues (https://github.com/dgraph-io/dgraph/pull/8601)
- fix(query): handle bad timezone correctly (https://github.com/dgraph-io/dgraph/pull/8657)
- chore(ludicroud): remove ludicrous mode from the code (https://github.com/dgraph-io/dgraph/pull/8612)
- fix(backup): make the /admin/backup and /admin/export API asynchronous (https://github.com/dgraph-io/dgraph/pull/8554)
- fix(mutation): validate mutation before applying it (https://github.com/dgraph-io/dgraph/pull/8623)
CI Enhancements
- fix(ci): unpin curl (https://github.com/dgraph-io/dgraph/pull/8577)
- fix(ci): adjust cron schedules (https://github.com/dgraph-io/dgraph/pull/8592)
- chore(ci): Capture coverage from bulk load and LDBC tests (https://github.com/dgraph-io/dgraph/pull/8478)
- chore(linter): enable gosec linter (https://github.com/dgraph-io/dgraph/pull/8678)
- chore: apply go vet improvements (https://github.com/dgraph-io/dgraph/pull/8620)
- chore(linter): fix some of the warnings from gas linter (https://github.com/dgraph-io/dgraph/pull/8664)
- chore(linter): fix golangci config and some issues in tests (https://github.com/dgraph-io/dgraph/pull/8669)
- fix(linter): address gosimple linter reports & errors (https://github.com/dgraph-io/dgraph/pull/8628)
Dgraph v22.0.2
Added
- ARM Support - Dgraph now supports ARM64 Architecture for development (https://github.com/dgraph-io/dgraph/pull/8543 https://github.com/dgraph-io/dgraph/pull/8520 https://github.com/dgraph-io/dgraph/pull/8503 https://github.com/dgraph-io/dgraph/pull/8436 https://github.com/dgraph-io/dgraph/pull/8405 https://github.com/dgraph-io/dgraph/pull/8395)
- Additional logging and trace tags for debugging (https://github.com/dgraph-io/dgraph/pull/8490)
Fixed
EDgraph
- fix(ACL): Prevents permissions overrride and merges acl cache to persist permissions across different namespaces (https://github.com/dgraph-io/dgraph/pull/8506)
Core Dgraph
- Fix(badger): Upgrade badger version to fix manifest corruption (https://github.com/dgraph-io/dgraph/pull/8365)
- fix(pagination): Fix after for regexp, match functions (https://github.com/dgraph-io/dgraph/pull/8471)
- fix(query): Do not execute filters if there are no source uids(https://github.com/dgraph-io/dgraph/pull/8452)
- fix(admin): make config changes to pass through gog middlewares (https://github.com/dgraph-io/dgraph/pull/8442)
- fix(sort): Only filter out nodes with positive offsets (https://github.com/dgraph-io/dgraph/pull/8441)
- fix(fragment): merge the nested fragments fields (https://github.com/dgraph-io/dgraph/pull/8435)
- Fix(lsbackup): Fix profiler in lsBackup (https://github.com/dgraph-io/dgraph/pull/8432)
- fix(DQL): optimize query for has function with offset (https://github.com/dgraph-io/dgraph/pull/8431)
GraphQL
- Fix(GraphQL): Make mutation rewriting tests more robust (https://github.com/dgraph-io/dgraph/pull/8449)
Security
-
CVE Fixes (35 total)
CVE Fixes (35 total)
- CVE-2013-4235
- CVE-2016-20013
- CVE-2016-2781
- CVE-2017-11164
- CVE-2018-16886
- CVE-2019-0205
- CVE-2019-0210
- CVE-2019-11254
- CVE-2019-16167
- CVE-2020-29652
- CVE-2021-31525
- CVE-2021-33194
- CVE-2021-36222
- CVE-2021-37750
- CVE-2021-38561
- CVE-2021-39537
- CVE-2021-43565
- CVE-2021-44716
- CVE-2021-44758
- CVE-2022-21698
- CVE-2022-27191
- CVE-2022-27664
- CVE-2022-29458
- CVE-2022-29526
- CVE-2022-3219
- CVE-2022-32221
- CVE-2022-3437
- CVE-2022-35737
- CVE-2022-3715
- CVE-2022-3821
- CVE-2022-39377
- CVE-2022-41916
- CVE-2022-42800
- CVE-2022-42898
- CVE-2022-44640
-
GHSA Fixes (2 total)
GHSE Fixes (2 total)
- GHSA-69ch-w2m2-3vjp
- GHSA-m332-53r6-2w93
-
Changed
CI Enhancements
- Added more unit tests (https://github.com/dgraph-io/dgraph/pull/8470 https://github.com/dgraph-io/dgraph/pull/8489 https://github.com/dgraph-io/dgraph/pull/8479 https://github.com/dgraph-io/dgraph/pull/8488 https://github.com/dgraph-io/dgraph/pull/8433)
- Coveralls on CI is enhanced to measure code coverage for integration tests (https://github.com/dgraph-io/dgraph/pull/8494)
- LDBC Benchmarking in enabled on CI
CD Enhancements
- Enhanced our CD Pipeline to support ARM64 binaries and docker-images (https://github.com/dgraph-io/dgraph/pull/8520)
- Enhanced dgraph-lambda to support arm64 (https://github.com/dgraph-io/dgraph-lambda/pull/39 https://github.com/dgraph-io/dgraph-lambda/pull/38 https://github.com/dgraph-io/dgraph-lambda/pull/37)
- Enhanced badger to support arm64 (https://github.com/dgraph-io/badger/pull/1838)