Project: Dgraph (App Definition and Development / Database)
File: CHANGELOG.md

All notable changes to this project will be documented in this file. The format is based on and this project will adhere to starting `v22.0.0`. 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) 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) 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) 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 in `dgraph 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) GraphQL 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

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) <details> <summary>CVE Fixes (31 total)</summary> 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 </details> 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

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) 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 in `dgraph 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) 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

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) 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) 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 in `dgraph 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) 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) 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

fix(linter): address gosimple linter reports & errors (https://github.com/dgraph-io/dgraph/pull/8628) 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) 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 <details> <summary>CVE Fixes (35 total)</summary> 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 <details> <summary>GHSA Fixes (2 total)</summary> GHSA-69ch-w2m2-3vjp GHSA-m332-53r6-2w93 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) on CI is enhanced to measure code coverage for integration tests (https://github.com/dgraph-io/dgraph/pull/8494) in enabled on CD Enhancements Enhanced our to support ARM64 binaries and docker-images (https://github.com/dgraph-io/dgraph/pull/8520) Enhanced 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 to support arm64 (https://github.com/dgraph-io/badger/pull/1838) CD Release Pipeline Badger Binary fetch steps added to the release CD pipeline (https://github.com/dgraph-io/dgraph/pull/8425) Corresponding Badger artifacts will be fetched & uploaded from v22.0.1 onwards Note `v22.0.0` release is based of `v21.03.2` release. https://discuss.dgraph.io/t/dgraph-v22-0-0-rc1-20221003-release-candidate/17839 Warning We are discontinuing support for `v21.12.0`. This will be a breaking change for anyone moving from `v21.12.0` to `v.22.0.0`. GraphQL fix(GraphQL): optimize eq filter queries (https://github.com/dgraph-io/dgraph/pull/7895) fix(GraphQL): add validation of null values with correct order of graphql rule validation (https://github.com/dgraph-io/dgraph/pull/8333) fix(GraphQL) fix auth query rewriting with ID filter (https://github.com/dgraph-io/dgraph/pull/8157) EDgraph fix(query): Prevent multiple entries for same predicate in mutations (https://github.com/dgraph-io/dgraph/pull/8332) Posting fix(rollups): Fix splits in roll-up

Security <details> <summary>CVE Fixes (417 total)</summary> CVE-2019-0210 CVE-2019-0205 CVE-2021-43565 CVE-2022-27664 CVE-2021-38561 CVE-2021-44716 CVE-2021-33194 CVE-2022-27191 CVE-2020-29652 CVE-2018-16886 CVE-2022-21698 CVE-2022-37434 CVE-2020-16156 CVE-2021-37750 CVE-2021-36222 CVE-2021-37750 CVE-2021-36222 CVE-2021-37750 CVE-2021-36222 CVE-2021-37750 CVE-2021-36222 CVE-2022-37434 CVE-2020-16156 CVE-2021-37750 CVE-2021-36222 CVE-2021-37750 CVE-2021-36222 CVE-2021-37750 CVE-2021-36222 CVE-2021-37750 CVE-2021-36222 CVE-2022-37434 CVE-2020-16156 CVE-2021-37750 CVE-2021-36222 CVE-2021-37750 CVE-2021-36222 CVE-2021-37750 CVE-2021-36222 CVE-2021-37750 CVE-2021-36222 CVE-2022-3116 CVE-2022-37434 CVE-2020-16156 CVE-2021-37750 CVE-2021-36222 CVE-2021-37750 CVE-2021-36222 CVE-2021-37750 CVE-2021-36222 CVE-2021-37750 CVE-2021-36222 CVE-2022-37434 CVE-2020-16156 CVE-2021-37750 CVE-2021-36222 CVE-2021-37750 CVE-2021-36222 CVE-2021-37750 CVE-2021-36222 CVE-2021-37750 CVE-2021-36222 CVE-2022-37434 CVE-2020-16156 CVE-2021-37750 CVE-2021-36222 CVE-2021-37750 CVE-2021-36222 CVE-2021-37750 CVE-2021-36222 CVE-2021-37750 CVE-2021-36222 CVE-2022-37434 CVE-2020-16156 CVE-2021-37750 CVE-2021-36222 CVE-2021-37750 CVE-2021-36222 CVE-2021-37750 CVE-2021-36222 CVE-2021-37750 CVE-2021-36222 CVE-2022-37434 CVE-2020-16156 CVE-2021-37750 CVE-2021-36222 CVE-2021-37750 CVE-2021-36222 CVE-2021-37750 CVE-2021-36222 CVE-2021-37750 CVE-2021-36222 CVE-2022-37434 CVE-2020-16156 CVE-2021-37750 CVE-2021-36222 CVE-2021-37750 CVE-2021-36222 CVE-2021-37750 CVE-2021-36222 CVE-2021-37750 CVE-2021-36222 CVE-2022-37434 CVE-2020-16156 CVE-2021-37750 CVE-2021-36222 CVE-2021-37750 CVE-2021-36222 CVE-2021-37750 CVE-2021-36222 CVE-2021-37750 CVE-2021-36222 CVE-2022-37434 CVE-2020-16156 CVE-2021-37750 CVE-2021-36222 CVE-2021-37750 CVE-2021-36222 CVE-2021-37750 CVE-2021-36222 CVE-2021-37750 CVE-2021-36222 CVE-2022-37434 CVE-2020-16156 CVE-2021-37750 CVE-2021-36222 CVE-2021-37750 CVE-2021-36222 CVE-2021-37750 CVE-2021-36222 CVE-2021-37750 CVE-2021-36222 CVE-2020-35525 CVE-2020-35527 CVE-2021-20223 CVE-2020-9794 CVE-2022-29526 CVE-2021-31525 CVE-2019-11254 CVE-2022-3219 CVE-2019-16167 CVE-2013-4235 CVE-2022-29458 CVE-2021-39537 CVE-2022-29458 CVE-2021-39537 CVE-2013-4235 CVE-2022-29458 CVE-2021-39537 CVE-2017-11164 CVE-2022-29458 CVE-2021-39537 CVE-2022-29458 CVE-2021-39537 CVE-2021-43618 CVE-2016-20013 CVE-2016-2781 CVE-2022-1587 CVE-2022-1586 CVE-2019-16167 CVE-2013-4235 CVE-2022-29458 CVE-2021-39537 CVE-2022-29458 CVE-2021-39537 CVE-2013-4235 CVE-2022-29458 CVE-2021-39537 CVE-2017-11164 CVE-2022-1587 CVE-2022-1586 CVE-2022-29458 CVE-2021-39537 CVE-2022-29458 CVE-2021-39537 CVE-2021-43618 CVE-2016-20013 CVE-2022-3219 CVE-2016-2781 CVE-2022-1587 CVE-2022-1586 CVE-2019-16167 CVE-2013-4235 CVE-2022-29458 CVE-2021-39537 CVE-2022-29458 CVE-2021-39537 CVE-2013-4235 CVE-2022-29458 CVE-2021-39537 CVE-2017-11164 CVE-2022-29458 CVE-2021-39537 CVE-2022-29458 CVE-2021-39537 CVE-2021-43618 CVE-2016-20013 CVE-2022-3219 CVE-2016-2781 CVE-2021-3671 CVE-2022-3219 CVE-2019-16167 CVE-2013-4235 CVE-2022-29458 CVE-2021-39537 CVE-2022-29458 CVE-2021-39537 CVE-2013-4235 CVE-2021-3671 CVE-2022-29458 CVE-2021-39537 CVE-2021-3671 CVE-2017-11164 CVE-2022-1587 CVE-2022-1586 CVE-2022-29458 CVE-2021-39537 CVE-2022-29458 CVE-2021-39537 CVE-2021-3671 CVE-2021-43618 CVE-2016-20013 CVE-2021-3671 CVE-2016-2781 CVE-2021-3671 CVE-2022-3219 CVE-2019-16167 CVE-2013-4235 CVE-2022-29458 CVE-2021-39537 CVE-2022-29458 CVE-2021-39537 CVE-2013-4235 CVE-2021-3671 CVE-2022-29458 CVE-2021-39537 CVE-2021-3671 CVE-2017-11164 CVE-2022-1587 CVE-2022-1586 CVE-2022-29458 CVE-2021-39537 CVE-2022-29458 CVE-2021-39537 CVE-2021-3671 CVE-2021-43618 CVE-2016-20013 CVE-2021-3671 CVE-2016-2781 CVE-2019-16167 CVE-2013-4235 CVE-2022-29458 CVE-2021-39537 CVE-2022-29458 CVE-2021-39537 CVE-2013-4235 CVE-2021-3671 CVE-2022-29458 CVE-2021-39537 CVE-2021-3671 CVE-2017-11164 CVE-2022-1587 CVE-2022-1586 CVE-2022-29458 CVE-2021-39537 CVE-2022-29458 CVE-2021-39537 CVE-2021-3671 CVE-2021-43618 CVE-2016-20013 CVE-2021-3671 CVE-2022-3219 CVE-2016-2781 CVE-2019-16167 CVE-2013-4235 CVE-2022-29458 CVE-2021-39537 CVE-2022-29458 CVE-2021-39537 CVE-2013-4235 CVE-2021-3671 CVE-2022-29458 CVE-2021-39537 CVE-2021-3671 CVE-2017-11164 CVE-2022-1587 CVE-2022-1586 CVE-2022-29458 CVE-2021-39537 CVE-2022-29458 CVE-2021-39537 CVE-2021-3671 CVE-2021-43618 CVE-2016-20013 CVE-2021-3671 CVE-2016-2781 CVE-2019-16167 CVE-2013-4235 CVE-2022-29458 CVE-2021-39537 CVE-2022-29458 CVE-2021-39537 CVE-2013-4235 CVE-2021-3671 CVE-2022-29458 CVE-2021-39537 CVE-2021-3671 CVE-2017-11164 CVE-2022-1587 CVE-2022-1586 CVE-2022-29458 CVE-2021-39537 CVE-2022-29458 CVE-2021-39537 CVE-2021-3671 CVE-2021-43618 CVE-2016-20013 CVE-2021-3671 CVE-2016-2781 CVE-2019-16167 CVE-2013-4235 CVE-2022-29458 CVE-2021-39537 CVE-2022-29458 CVE-2021-39537 CVE-2013-4235 CVE-2021-3671 CVE-2022-29458 CVE-2021-39537 CVE-2021-3671 CVE-2017-11164 CVE-2022-1587 CVE-2022-1586 CVE-2022-29458 CVE-2021-39537 CVE-2022-29458 CVE-2021-39537 CVE-2021-3671 CVE-2021-43618 CVE-2016-20013 CVE-2021-3671 CVE-2016-2781 CVE-2019-16167 CVE-2013-4235 CVE-2022-29458 CVE-2021-39537 CVE-2022-29458 CVE-2021-39537 CVE-2013-4235 CVE-2021-3671 CVE-2022-29458 CVE-2021-39537 CVE-2021-3671 CVE-2017-11164 CVE-2022-1587 CVE-2022-1586 CVE-2022-29458 CVE-2021-39537 CVE-2022-29458 CVE-2021-39537 CVE-2021-3671 CVE-2021-43618 CVE-2016-20013 CVE-2021-3671 CVE-2016-2781 CVE-2019-16167 CVE-2013-4235 CVE-2022-29458 CVE-2021-39537 CVE-2022-29458 CVE-2021-39537 CVE-2013-4235 CVE-2021-3671 CVE-2022-29458 CVE-2021-39537 CVE-2021-3671 CVE-2017-11164 CVE-2022-1587 CVE-2022-1586 CVE-2022-29458 CVE-2021-39537 CVE-2022-29458 CVE-2021-39537 CVE-2021-3671 CVE-2021-43618 CVE-2016-20013 CVE-2021-3671 CVE-2016-2781 CVE-2019-16167 CVE-2013-4235 CVE-2022-29458 CVE-2021-39537 CVE-2022-29458 CVE-2021-39537 CVE-2013-4235 CVE-2021-3671 CVE-2022-29458 CVE-2021-39537 CVE-2021-3671 CVE-2017-11164 CVE-2022-1587 CVE-2022-1586 CVE-2022-29458 CVE-2021-39537 CVE-2022-29458 CVE-2021-39537 CVE-2021-3671 CVE-2021-43618 CVE-2016-20013 CVE-2021-3671 CVE-2016-2781 CVE-2021-3671 CVE-2022-1587 CVE-2022-1586 CVE-2021-3671 CVE-2020-9991 CVE-2020-9849 </details> <details> <summary>GHSA Fixes (5 total)</summary> GHSA-jq7p-26h5-w78r GHSA-8c26-wmh5-6g9v GHSA-h6xx-pmxh-3wgp GHSA-cg3q-j54f-5p7p GHSA-wxc4-f4m6-wwqv </details> fix(sec): fixing HIGH CVEs (https://github.com/dgraph-io/dgraph/pull/8289) fix(sec): CVE High Vulnerability (https://github.com/dgraph-io/dgraph/pull/8277) fix(sec): Fixing CVE-2021-31525 (https://github.com/dgraph-io/dgraph/pull/8274) fix(sec): CVE-2019-11254 (https://github.com/dgraph-io/dgraph/pull/8270) CI Test Infrastructure Configured to run with Stability Improvements to test harness Enabled Enabled Enabled Enabled CI Security Configured to run with Enabled Enabled dependabot scans Configured to run with CD Release Pipeline Automated to facilitate building of dgraph-binary & corresponding docker-images. The built artifacts are published to repositories through the same pipeline. GraphQL Handle extend keyword for Queries and Mutations () Core Dgraph fix(Raft): Detect network partition when streaming () fix(Raft): Reconnect via a redial in case of disconnection. () fix(conn): JoinCluster loop should use latest conn () fix(pool): use write lock when getting health info () fix(acl): The Acl cache should be updated on restart and restore. () fix(acl): filter out the results based on type () fix(backup): Fix full backup request () fix(live): quote the xid when doing upsert () fix(export): Write temporary files for export to the t directory. () protobuf: upgrade golang/protobuf library v1.4.1 -> v1.5.2 () chore(raft): Log packets message less frequently. () feat(acl): allow access to all the predicates using wildcard. () feat(Multi-tenancy): Add namespaces field to state. () GraphQL fix(GraphQL): fix @cascade with Pagination for @auth queries () Fix(GraphQL): Fix GraphQL encoding in case of empty list () () Fix(GraphQL): Add filter in DQL query in case of reverse predicate () () Fix(graphql): Fix error message of lambdaOnMutate directive () () Core Dgraph fix(vault): Hide ACL flags when not required () fix(Chunker): don't delete node with empty facet in mutation () () fix(bulk): throw the error instead of crashing () () fix(raftwal): take snapshot after restore () () fix(bulk): upsert guardian/groot for all existing namespaces () () fix(txn): ensure that txn hash is set () () bug fix to permit audit streaming to stdout writer() () fix(drop): attach galaxy namespace to drop attr done on 20.11 backup () fix: Prevent proposal from being dropped accidentally () () fix(schema-update): Start opIndexing only when index creation is required. () () fix(export): Fix facet export of reference type postings to JSON format () () fix(lease): don't do rate limiting when not limit is not specified () fix(lease): prevent ID lease overflow () fix(auth): preserve the status code while returning error () () fix(ee): GetKeys should return an error () () fix(admin): remove exportedFiles field () () fix(restore): append galaxy namespace to type name () fix(DQL): revert changes related to cascade pagination with sort () () fix(metrics): Expose dgraphnumbackupsfailedtotal metric

() () opt(GraphQL): filter existence queries on GraphQL side instead of using @filter(type) () () feat(cdc): Add support for SCRAM SASL mechanism () () Add asynchronous task API () make exports synchronous again () feat(schema): do schema versioning and make backup non-blocking for i () () ) ) ) () () () () ) ) ) ) ) ) ) ) () () () () () () GraphQL Feat(GraphQL): Zero HTTP endpoints are now available at GraphQL admin (GraphQL-1118) () () Feat(GraphQL): Webhooks on add/update/delete mutations (GraphQL-1045) () () Feat(GraphQL): Allow Multiple JWKUrls for auth. () () Feat(GraphQL): allow string --> Int64 hardcoded coercing () Feat(Apollo): Add support for `@provides` and `@requires` directive. () Feat(GraphQL): Handle upsert with multiple XIDs in case one of the XIDs does not exist () Feat(GraphQL): Delete redundant reference to inverse object () Feat(GraphQL): upgarde GraphQL-transport-ws module () Feat(GraphQL): This PR allow multiple `@id` fields in a type. () Feat(GraphQL): Add support for GraphQL Upsert Mutations () Feat(GraphQL): This PR adds subscriptions to custom DQL. () Feat(GraphQL): Make XID node referencing invariant of order in which XIDs are referenced in Mutation Rewriting () Feat(GraphQL): Dgraph.Authorization should with irrespective of number of spaces after # () Feat(GraphQL): adding auth token support for regexp, in and arrays () Feat(GraphQL): Extend Support of IN filter to all the scalar data types () Feat(GraphQL): Add `@include` and `@skip` to the Directives () Feat(GraphQL): add support for has filter with list of arguments. () Feat(GraphQL): Add support for has filter on list of fields. () Feat(GraphQL): Allow standard claims into auth variables () Perf(GraphQL): Generate GraphQL query response by optimized JSON encoding (GraphQL-730) () Feat(GraphQL): Extend Support For Apollo Federation () Feat(GraphQL): Support using custom DQL with `@groupby` () Feat(GraphQL): Add support for passing OAuth Bearer token as authorization JWT () Core Dgraph Feat(query): Add mechanism to have a limit on number of pending queries () Perf(bulk): Reuse allocator () Perf(compression): Use gzip with BestSpeed in export and backup () () Feat(flags): Add query timeout as a limit config () Opt(reindex): do not try building indices when inserting a new predicate () Perf(txn): de-duplicate the context keys and predicates () Feat(flags): use Vault for ACL secrets () Feat(bulk): Add /jemalloc HTTP endpoint. () Feat(metrics): Add Dgraph txn metrics (commits and discards). () Feat(Bulk Loader + Live Loader): Supporting Loading files via s3/minio () Feat(metrics): Add Raft leadership metrics. () Use Badger's value log threshold of 1MB () Feat(Monitoring): Adding Monitoring for Disk Space and Number of Backups () Perf: simple simdjson solution with 30% speed increase () Enterprise Features Perf(Backup): Improve backup Performance () Make backup API asynchronous Perf(backups): Reduce latency of list backups () Feat(acl): allow setting a password at the time of creation of namespace () Feat(enterprise): audit logs for alpha and zero () Feat(enterpise): Change data capture (CDC) integration with kafka () Perf(dgraph) - Use badger sinceTs in backups () Perf(backup): Reorganize the output of lsbackup command () GraphQL Fix(GraphQL): Fix Execution Trace for Add and Update Mutations () Fix(GraphQL): Add error handling for unrecognized args to generate directive. () Fix(GraphQL): Fix panic when no schema exists for a new namespace () Fix(GraphQL): Fixed output coercing for admin fields. () Fix(GraphQL): Fix lambda querying a lambda field in case of no data. () Fix(GraphQL): Undo the breaking change and tag it as deprecated. () Fix(GraphQL): Add extra checks for deleting UpdateTypeInput () Fix(persistent): make persistent query namespace aware () Fix(GraphQL): remove support of `@id` directive on Float () Fix(GraphQL): Fix mutation with Int Xid

() () Fix(GraphQL): Fix error message when dgraph and GraphQL schema differ. Fix(GraphQL): Fix custom(dql: ...) with `typename` (GraphQL-1098) () Fix(GraphQL): Change variable name generation for interface auth rules () Fix(GraphQL): Apollo federation now works with lambda (GraphQL-1084) () Fix(GraphQL): Fix empty remove in update mutation patch, that remove all the data for nodes in filter. () Fix(GraphQL): Fix order of entities query result () Fix(GraphQL): Change variable name generation from `Type<Num>` to `Type_<Num>` () Fix(GraphQL): Fix duplicate xid error for multiple xid fields. () Fix(GraphQL): Fix query rewriting for multiple order on nested field. () Fix(GraphQL) Fix empty `type Query` with single extended type definition in the schema. () Fix(GraphQL): Added support for parameterized cascade with variables. () Fix(GraphQL): Fix fragment expansion in auth queries (GraphQL-1030) () Fix(GraphQL): Refactor Mutation Rewriter for Add and Update Mutations () Fix(GraphQL): Fix `@auth` rules evaluation in case of null variables in custom claims. () Fix(GraphQL): Fix interface query with auth rules. () Fix(GraphQL): Added error for case when multiple filter functions are used in filter. () Fix(subscriptions): Fix subscription to use the kv with the max version () Fix(GraphQL):This PR Fix a panic when we pass a single ID as a integer and expected type is `) Fix(GraphQL): This PR Fix multi cors and multi schema nodes issue by selecting one of the latest added nodes, and add dgraph type to cors. () Fix(GraphQL): This PR allow to use `typename` in mutation. () Fix(GraphQL): Fix auth-token propagation for HTTP endpoints resolved through GraphQL (GraphQL-946) () Fix(GraphQL): This PR addd input coercion from single object to list and Fix panic when we pass single ID in filter as a string. () Fix(GraphQL): adding support for `@id` with type other than strings () Fix(GraphQL): Fix panic caused by incorrect input coercion of scalar to list () Core Dgraph Fix(flag): Fix bulk loader flag and remove flag parsing from critical path () Fix(query): Fix pagination with match functions () Fix(postingList): Acquire lock before reading the cached posting list () Fix(zero): add a ratelimiter to limit the uid lease per namespace () Fixing type inversion in ludicrous mode () Fix(/commit): protect the commit endpoint via acl () Fix(login): Fix login based on refresh token logic () Fix(Query): Fix cascade pagination with 0 offset. () Fix(telemetry): Track enterprise Feature usage () Fix(dql): Fix error message in case of wrong argument to val() () Fix(export): Fix namespace parameter in export () Fix(live): Fix usage of force-namespace parameter in export () Fix(Configs): Allow hierarchical notation in JSON/YAML configs () Fix upsert mutations () Fix(admin-endpoints): Error out if the request is rejected by the server () Fix(Dgraph): Throttle number of files to open while schema update () Fix(metrics): Expose Badger LSM and vlog size bytes. () Fix(schema): log error instead of panic if schema not found for predicate () Fix(moveTablet): make move tablet namespace aware () Fix(dgraph): Do not return reverse edges from expandEdges () Fix(Query): Fix cascade with pagination () Fix(Mutation): Deeply-nested uid facets () Fix(live): Fix live loader to load with force namespace () Fix(sort): Fix multi-sort with nils () Fix(GC): Reduce DiscardRatio from 0.9 to 0.7 () Fix(jsonpb): use gogo/jsonpb for unmarshalling string () Fix: Calling Discard only adds to `txndiscards` metric, not `txnaborts`. () Fix(Dgraph): check for deleteBelowTs in

() Fix(dgraph): Add X-Dgraph-AuthToken to list of access control allowed headers Fix(sort): Make sort consistent for indexed and without indexed predicates () Fix(ludicrous): Fix logical race in concurrent execution of mutations () Fix(restore): Handle MaxUid=0 appropriately () Fix(indexing): use encrypted tmpDBs for index building if encryption is enabled () Fix(bulk): save schemaMap after map phase () Fix(DQL): Fix Aggregate Functions on empty data () Fixing unique proposal key error () Fix(Chunker): JSON parsing Performance () Fix(bulk): Fix memory held by b+ tree in reduce phase () Fix(bulk): Fixing bulk loader when encryption + mtls is enabled () Enterprise Features Fix(restore): append the object path preFix while reading backup () Fix restoring from old version for type () Fix(backup): Fix Perf issues with full backups () Fix(export-backup): Fix memory leak in backup export () Fix(ACL): use acl for export, add GoG admin resolvers () Fix(restore): reset acl accounts once restore is done if necessary () Fix(restore): multiple restore requests should be rejected and proposals should not be submitted () GraphQL Remove github issues link from the error messages. () Allow case insensitive auth header for graphql subscriptions. () Add retry for schema update () Queue keys for rollup during mutation. () GraphQL Adds auth for subscriptions. () Add --cachemb and --cachepercentage flags. () Add flags to set table and vlog loading mode for zero. () Add flag to set up compression in zero. () GraphQL Multiple queries in a single request should not share the same variables. () Fixes panic in update mutation without set & remove. () Fixes wrong query parameter value for custom field URL. () Fix auth rewriting for nested queries when RBAC rule is true. () Disallow Subscription typename. () Panic fix when subscription expiry is not present in jwt. () Fix getType queries when id was used as a name for types other than ID. () Don't reserve certain queries/mutations/inputs when a type is remote. () Linking of xids for deep mutations. () Prevent empty values in fields having `id` directive. () Fixes unexpected fragment behaviour. () Incorrect generatedSchema in update GQLSchema. () Fix out of order issues with split keys in bulk loader. () Rollup a batch if more than 2 seconds elapsed since last batch. () Refactor: Simplify how list splits are tracked. () Fix: Don't allow idx flag to be set to 0 on dgraph zero. () Fix error message for idx = 0 for dgraph zero. () Stop forcing RAM mode for the write-ahead log. () Fix panicwrap parent check. () Sort manifests by BackupNum in file handler. () Fixes queries which use variable at the top level. () Return error on closed DB. () Optimize splits by doing binary search. Clear the pack from the main list. () Proto fix needed for PR . () Sentry nil pointer check. () Don't store start_ts in postings. () Use z.Closer instead of y.Closer. () Make Alpha Shutdown Again. () Force exit if CTRL-C is caught before initialization. () Update advanced-queries.md. Batch list in bulk loader to avoid panic. () Enterprise features Make backups cancel other tasks. () Online Restore honors credentials passed in. () Add a lock to backups to process one request at a time. () Fix Star_All delete query when used with ACL enabled. () Add retry for schema update. () Queue keys for rollup during mutation. () Add --cachemb and --cachepercentage flags. () Add flag to set up compression in zero. () Add flags to set table and vlog loading mode for zero. () GraphQL Prevent empty values in fields having `id` directive. () Fix out of order issues with split keys in bulk loader. () Rollup a batch if more than 2 seconds elapsed since last batch. () Simplify how list splits are tracked. () Perform rollups more

() Don't allow idx flag to be set to 0 on dgraph zero. () Stop forcing RAM mode for the write-ahead log. () Fix panicwrap parent check. () Sort manifests by backup number. () Don't store start_ts in postings. () Update reverse index when updating single UID predicates. () Return error on closed DB. () Optimize splits by doing binary search. Clear the pack from the main list. () Sentry nil pointer check. () Use z.Closer instead of y.Closer. () Make Alpha Shutdown Again. () Force exit if CTRL-C is caught before initialization. () Batch list in bulk loader to avoid panic. () Enterprise features Make backups cancel other tasks. () Add a lock to backups to process one request at a time. () Add --cachemb and --cachepercentage flags. () Add flag to set up compression in zero. () Add flags to set table and vlog loading mode for zero. () Don't allow idx flag to be set to 0 on dgraph zero. () Stop forcing RAM mode for the write-ahead log. () Return error on closed DB. () Don't store start_ts in postings. () Optimize splits by doing binary search. Clear the pack from the main list. () Add a lock to backups to process one request at a time. () Use z.Closer instead of y.Closer' () Force exit if CTRL-C is caught before initialization. () Fix(Alpha): MASA: Make Alpha Shutdown Again. () Enterprise features Sort manifests by backup number. () Skip backing up nil lists. () GraphQL Make updateGQLSchema always return the new schema. () Allow user to define and pass arguments to fields. () Move alias to end of graphql pipeline. () Return error list while validating GraphQL schema. () Send CID for sentry events. () Alpha: Enable bloom filter caching () Add support for multiple uids in uid_in function () Tag sentry events with additional version details. () Sentry opt out banner. () Replace shutdownCh and wait groups to a y.Closer for shutting down Alpha. () Update badger to commit . () Update Badger (, ) Fix assert in background compression and encryption. () GC: Consider size of value while rewriting () Restore: Account for value size as well () Tests: Do not leave behind state goroutines () Support disabling conflict detection () Compaction: Expired keys and delete markers are never purged () Fix build on golang tip () StreamWriter: Close head writer () Iterator: Always add key to txn.reads () Add immudb to the project list () DefaultOptions: Set KeepL0InMemory to false () Enterprise features /health endpoint now shows Enterprise Features available. Fixes . () GraphQL Changes for /health endpoint's Enterprise features info. Fixes . () Use encryption in temp badger, fix compilation on 32-bit. () Only process restore request in the current alpha if it's the leader. () Vault: Support kv v1 and decode base64 key. () Breaking changes . () GraphQL Add Graphql-TouchedUids header in HTTP response. () Introduce `@cascade` in GraphQL. Fixes . () Add authentication feature and http admin endpoints. Fixes . () Support existing gqlschema nodes without xid. () Add custom logic feature. () Add extensions to query response. () Allow query of deleted nodes. () Allow more control over custom logic header names. () Adds Apollo tracing to GraphQL extensions. () Turn on subscriptions and adds directive to control subscription generation. () Add introspection headers to custom logic. () GraphQL health now reported by /probe/graphql. () Validate audience in authorization JWT and change `Dgraph.Authorization` format. () Upgrade tool for 20.07. () Async restore

() Add LogRequest variable to GraphQL config input. () Allow backup ID to be passed to restore endpoint. () Added support for application/graphQL to graphQL endpoints. () Add support for xidmap in bulkloader. Fixes . () Add GraphQL admin endpoint to list backups. () Enterprise features GraphQL schema get/update, Dgraph schema query/alter and /login are now admin operations. () Backup can take S3 credentials from IAM. () Online restore. () Retry restore proposals. () Add support for encrypted backups in online restores. () Breaking changes ) GraphQL Validate JWT Claims and test JWT expiry. () Validate subscriptions in Operation function. () Nested auth queries no longer search through all possible records. () Apply auth rules on type having @dgraph directive. () Custom Claim will be parsed as JSON if it is encoded as a string. () Dgraph directive with reverse edge should work smoothly with interfaces. Fixed . () Fix case where Dgraph type was not generated for GraphQL interface. Fixes . () Fix panic error when there is no @withSubscription directive on any type. () Fix OOM issue in graphql mutation rewriting. () Preserve GraphQL schema after drop_data. () Maintain Master's backward compatibility for `Dgraph.Authorization` in schema. () Remote schema introspection for single remote endpoint. () Requesting only \_\-typename now returns results. () Typename for types should be filled in query for schema introspection queries. Fixes . () Update GraphQL schema only on Group-1 leader. () Add more validations for coercion of object/scalar and vice versa. () Apply type filter for get query at root level. () Fix mutation on predicate with special characters having dgraph directive. Fixes . () Return better error message if a type only contains ID field. () Coerce value for scalar types correctly. () Minor delete mutation msg fix. () Report all errors during schema update. () Do graphql query/mutation validation in the mock server. () Remove custom directive from internal schema. () Recover from panic within goroutines used for resolving custom fields. () Start collecting and returning errors from remote remote GraphQL endpoints. () Fix response for partial admin queries. () Avoid assigning duplicate RAFT IDs to new nodes. Fixes . () Alpha: Gracefully shutdown ludicrous mode. () Use rampMeter for Executor. () Dont set n.ops map entries to nil. Instead just delete them. () Add check on rebalance interval. () Queries or mutations shouldn't be part of generated Dgraph schema. () Sent restore proposals to all groups asyncronouosly. () Fix long lines in export.go. () Fix warnings about unkeyed literals. () Remove redundant conversions between string and ) Propogate request context while handling queries. () K-Shortest path query fix. Fixes . () Worker: Return nil on error. () Fix warning about issues with the cancel function. (). Replace TxnWriter with WriteBatch. () Add a check to throw an error is a nil pointer is passed to unmarshalOrCopy. () Remove noisy logs in tablet move. () Support bulk loader use-case to import unencrypted export and encrypt the result. () Handle Dgraph shutdown gracefully. Fixes . (, ) If we don't have any schema updates, avoid running the indexing sequence. () Pass read timestamp to getNew. () Indicate dev environment in Sentry events. () Replaced s2 contains point methods with go-geom. ( Change tablet size calculation to not depend on the right key. Fixes . () Fix alpha start in ludicrous mode. Fixes . () Handle schema updates correctly in ludicrous mode. () Fix Panic because of nil map in groups.go. () update reverse index when updating single UID predicates. Fixes

(), () Fix expand(\all\) queries in ACL. Fixes . () Fix val queries when ACL is enabled. Fixes . () Return error if server is not ready. () Reduce memory consumption of the map. () Cancel the context when opening connection to leader for streaming snapshot. () Breaking changes . () ) , , . () Enterprise: Backup: Change groupId from int to uint32. () Backup: Use a sync.Pool to allocate KVs during backup. () Backup: Fix segmentation fault when calling the /admin/backup edpoint. () Restore: Make backupId optional in restore GraphQL interface. () Restore: Move tablets to right group when restoring a backup. () Restore: Only processes backups for the alpha's group. () vault_format support for online restore and gql () Update Badger 07/13/2020. (, ) Sentry opt out banner. () Tag sentry events with additional version details. () GraphQL Minor delete mutation msg fix. () Make updateGQLSchema always return the new schema. () Fix mutation on predicate with special characters in the `@dgraph` directive. () Updated mutation rewriting to fix OOM issue. () Fix case where Dgraph type was not generated for GraphQL interface. Fixes . () Fix interface conversion panic in v20.03 () . Dont set n.ops map entries to nil. Instead just delete them. () Alpha: Enable bloom filter caching. () Alpha: Gracefully shutdown ludicrous mode. () Alpha Close: Wait for indexing to complete. Fixes . () K shortest paths queries fix. () Add check on rebalance interval. () Remove noisy logs in tablet move. () Avoid assigning duplicate RAFT IDs to new nodes. Fixes . () Send CID for sentry events. () Use rampMeter for Executor. () Fix snapshot calculation in ludicrous mode. () Update badger: Avoid panic in fillTables(). Fix assert in background compression and encryption. () Avoid panic in handleValuePostings. () Fix facets response with normalize. Fixes . () Badger iterator key copy in count index query. () Ludicrous mode mutation error. () Return error instead of panic. () Fix segmentation fault in draft.go. () Optimize count index. () Handle schema updates correctly in ludicrous mode. () Fix Panic because of nil map in groups.go. () Return error if server is not ready. () Enterprise features Backup: Change groupId from int to uint32. () Backup: Use a sync.Pool to allocate KVs. () Update Badger. (, ) Fix assert in background compression and encryption. (dgraph-io/badger#1366) Avoid panic in filltables() (dgraph-io/badger#1365) Force KeepL0InMemory to be true when InMemory is true (dgraph-io/badger#1375) Tests: Use t.Parallel in TestIteratePrefix tests (dgraph-io/badger#1377) Remove second initialization of writech in Open (dgraph-io/badger#1382) Increase default valueThreshold from 32B to 1KB (dgraph-io/badger#1346) Pre allocate cache key for the block cache and the bloom filter cache (dgraph-io/badger#1371) Rework DB.DropPrefix (dgraph-io/badger#1381) Update head while replaying value log (dgraph-io/badger#1372) Update ristretto to commit f66de99 (dgraph-io/badger#1391) Enable cross-compiled 32bit tests on TravisCI (dgraph-io/badger#1392) Avoid panic on multiple closer.Signal calls (dgraph-io/badger#1401) Add a contribution guide (dgraph-io/badger#1379) Add assert to check integer overflow for table size (dgraph-io/badger#1402) Return error if the vlog writes exceeds more that 4GB. (dgraph-io/badger#1400) Revert "add assert to check integer overflow for table size (dgraph-io/badger#1402)" (dgraph-io/badger#1406) Revert "fix: Fix race condition in block.incRef (dgraph-io/badger#1337)" (dgraph-io/badger#1407) Revert "Buffer pool for decompression (dgraph-io/badger#1308)" (dgraph-io/badger#1408) Revert "Compress/Encrypt Blocks in the background (dgraph-io/badger#1227)" (dgraph-io/badger#1409) Add missing changelog for v2.0.3 (dgraph-io/badger#1410) Changelog for v20.07.0 (dgraph-io/badger#1411) Alpha: Enable bloom filter caching. () K shortest paths queries fix. () Add check on rebalance interval. () Change error message in case of successful license application. () Remove noisy logs in tablet move. () Avoid assigning duplicate RAFT IDs to new

Fixes . () Update badger: Set KeepL0InMemory to false (badger default), and Set DetectConflicts to false. () Use /tmp dir to store temporary index. Fixes . () Split posting lists recursively. () Set version when rollup is called with no splits. () Return error instead of panic (readPostingList). Fixes . () ServeTask: Return error if server is not ready. () Enterprise features Backup: Change groupId from int to uint32. () Backup: During backup, collapse split posting lists into a single list. () Backup: Use a sync.Pool to allocate KVs during backup. () Sentry Improvements: Segregate dev and prod events into their own Sentry projects. Remove Panic back-traces, Set the type of exception to the panic message. () /health endpoint now shows EE Features available and GraphQL changes. () Return error response if encoded response is > 4GB in size. Replace idMap with idSlice in encoder. () Initialize sentry at the beginning of alpha.Run(). () Adds ludicrous mode to live loader. () GraphQL: adds transactions to graphql mutations () Export: Ignore deleted predicates from schema. Fixes . () GraphQL: ensure upserts don't have accidental edge removal. Fixes . () Fix segmentation fault in query.go. () Fix empty string checks. () Update group checksums when combining multiple deltas. Fixes . () Change the default ratio of traces from 1 to 0.01. () Fix protobuf headers check. () Stream the full set of predicates and types during a snapshot. () Support passing GraphQL schema to bulk loader. Fixes . () Export GraphQL schema to separate file. Fixes . () Fix memory leak in live loader. () Replace strings.Trim with strings.TrimFunc in ParseRDF. () Return nil instead of emptyTablet in groupi.Tablet(). () Use pre-allocated protobufs during backups. () During shutdown, generate snapshot before closing raft node. () Get lists of predicates and types before sending the snapshot. () Fix panic for sending on a closed channel. () Fix inconsistent bulk loader failures. Fixes . () GraphQL: fix password rewriting. () GraphQL: Fix non-unique schema issue. () Enterprise features Print error when applying enterprise license fails. () Apply the option enterpriselicense only after the node's Raft is initialized and it is the leader. Don't apply the trial license if a license already exists. Disallow the enterpriselicense option for OSS build and bail out. Apply the option even if there is a license from a previous life of the Zero. () Use SensitiveByteSlice type for hmac secret. () Return error response if encoded response is > 4GB in size. Replace idMap with idSlice in encoder. () Change the default ratio of traces from 1 to 0.01. () Export: Ignore deleted predicates from schema. Fixes . () Fix segmentation fault in query.go. () Update group checksums when combining multiple deltas. Fixes . () Fix empty string checks. () Fix protobuf headers check. () Stream the full set of predicates and types during a snapshot. () Use pre-allocated protobufs during backups. () Replace strings.Trim with strings.TrimFunc in ParseRDF. () Return nil instead of emptyTablet in groupi.Tablet(). () During shutdown, generate snapshot before closing raft node. () Get lists of predicates and types before sending the snapshot. () Move runVlogGC to x and use it in zero as well. () Fix inconsistent bulk loader failures. Fixes . () Use SensitiveByteSlice type for hmac secret. () This release was removed This release was removed Support comma separated list of zero addresses in alpha. () Optimization: Optimize snapshot creation () Optimization: Remove isChild from fastJsonNode. () Optimization: Memory improvements in fastJsonNode. () Update badger to commit

() Compression/encryption runs in the background (which means faster writes) Separate cache for bloom filters which limits the amount of memory used by bloom filters Avoid crashing live loader in case the network is interrupted. () Enterprise features Backup/restore: Force users to explicitly tell restore command to run without zero. () Alpha: Expose compression_level option. () Implement json.Marshal just for strings. () Change error message in case of successful license application. Fixes . () Add OPTIONS support for /ui/keywords. Fixes . () Check uid list is empty when filling shortest path vars. () Return error for invalid UID 0x0. Fixes . () Skipping floats that cannot be marshalled (+Inf, -Inf, NaN). (, ) Fix panic in Task FrameWork. Fixes . () graphql: @dgraph(pred: "...") with @search. () graphql: ensure @id uniqueness within a mutation. () Set correct posting list type while creating it in live loader. () Add support for tinyint in migrate tool. Fixes . () Fix bug, aggregate value var works with blank node in upsert. Fixes . () Always set BlockSize in encoder. Fixes . () Optimize uid allocation in live loader. () Shutdown executor goroutines. () Update RAFT checkpoint when doing a clean shutdown. () Enterprise features Backup schema keys in incremental backups. Before, the schema was only stored in the full backup. () Return list of ongoing tasks in /health endpoint. () Propose snapshot once indexing is complete. () Add query/mutation logging in glog V=3. () Include the total number of touched nodes in the query metrics. () Flag to turn on/off sending Sentry events, default is on. () Concurrent Mutations. () Enterprise features Support bulk loader use-case to import unencrypted export and encrypt. () Create encrypted restore directory from encrypted backups. () Add option "--encryptionkeyfile"/"-k" to debug tool for encryption support. () Support for encrypted backups/restore. Note: Older backups without encryption will be incompatible with this Dgraph version. Solution is to force a full backup before creating further incremental backups. () Add encryption support for export and import (via bulk, live loaders). () Add Badger expvar metrics to Prometheus metrics. Fixes . () Add option to apply enterprise license at zero's startup. () Support comma separated list of zero addresses in alpha. () Optimization: Optimize snapshot creation. () Optimization: Remove isChild from fastJsonNode. () Optimization: Memory improvements in fastJsonNode. () Update Badger to commit cddf7c03451c33. () Compression/encryption runs in the background (which means faster writes) Separate cache for bloom filters which limits the amount of memory used by bloom filters Avoid crashing live loader in case the network is interrupted. () Enterprise features Backup/restore: Force users to explicitly tell restore command to run without zero. () Check uid list is empty when filling shortest path vars. () Return error for invalid UID 0x0. Fixes . () Skipping floats that cannot be marshalled (+Inf, -Inf, NaN). (, ) Set correct posting list type while creating it in live loader. () Add support for tinyint in migrate tool. Fixes . () Fix bug, aggregate value var works with blank node in upsert. Fixes . () Always set BlockSize in encoder. Fixes . () Enterprise features Backup schema keys in incremental backups. Before, the schema was only stored in the full backup. () Add Badger expvar metrics to Prometheus metrics. Fixes . () Enterprise features Support bulk loader use-case to import unencrypted export and encrypt. () Create encrypted restore directory from encrypted backups. () Add option "--encryptionkeyfile"/"-k" to debug tool for encryption support. () Support for encrypted

Note: Older backups without encryption will be incompatible with this Dgraph version. Solution is to force a full backup before creating further incremental backups. () Add encryption support for export and import (via bulk, live loaders). () Note: This release requires you to export and re-import data prior to upgrading or rolling back. The underlying data format has been changed. Report GraphQL stats from alpha. () During backup, collapse split posting lists into a single list. () Optimize computing reverse reindexing. () Add partition key based iterator to the bulk loader. () Invert s2 loop instead of rebuilding. () Update Badger Version. () Incremental Rollup and Tablet Size Calculation. () Track internal operations and cancel when needed. () Set version when rollup is called with no splits. () Use a different stream writer id for split keys. () Split posting lists recursively. () Add support for tinyint in migrate tool. Fixes . () Enterprise features Breaking changes ) Add GraphQL API for Dgraph accessible via the `/graphql` and `/admin` HTTP endpoints on Dgraph Alpha. () Add support for sorting on multiple facets. Fixes . () Expose Badger Compression Level option in Bulk Loader. () GraphQL Admin API: Support Backup operation. () GraphQL Admin API: Support export, draining, shutdown and setting lrumb operations. () GraphQL Admin API: duplicate `/health` in GraphQL `/admin` () GraphQL Admin API: Add `/admin/schema` endpoint () Perform indexing in background. () Basic Sentry Integration - Capture manual panics with Sentry exception and runtime panics with a wrapper on panic. () Ludicrous Mode. () Enterprise features ACL: Allow users to query data for their groups, username, and permissions. () ACL: Support ACL operations using the admin GraphQL API. () ACL: Add tool to upgrade ACLs. () Avoid running GC frequently. Only run for every 2GB of increase. Small optimizations in Bulk.reduce. Check response status when posting telemetry data. () Add support for $ in quoted string. Fixes . () Do not include empty nodes in the export output. Fixes . () Fix Nquad value conversion in live loader. Fixes . () Use `/tmp` dir to store temporary index. Fixes . () Properly initialize posting package in debug tool. () Fix bug, aggregate value var works with blank node in upsert. Fixes . () Fix count with facets filter. Fixes . () Change split keys to have a different prefix. Fixes . () Various optimizations for facets filter queries. () Throw errors returned by retrieveValuesAndFacets. Fixes . () Add "runInBackground" option to Alter to run indexing in background. When set to `true`, then the Alter call returns immediately. When set to `false`, the call blocks until indexing is complete. This is set to `false` by default. () Set correct posting list type while creating it in the live loader. Fixes . () Breaking changes . () Wrap errors thrown in posting/list.go for easier debugging. () Print keys using hex encoding in error messages in list.go. () Do not include empty nodes in the export output. () Fix error when lexing language list. () Properly initialize posting package in debug tool. () Handle special characters in schema and type queries. Fixes . () Overwrite values for uid predicates. Fixes . () Disable @* language queries when the predicate does not support langs. () Fix bug in exporting types with reverse predicates. Fixes . () Do not skip over split keys. (Trying to skip over the split keys sometimes skips over keys belonging to a different split key. This is a fix just for this release as the actual fix requires changes to the data

() Fix point-in-time Prometheus metrics. Fixes . () Split lists in the bulk loader. () Allow remote MySQL server with dgraph migrate tool. Fixes . () Enterprise features ACL: Allow uid access. () Backups: Assign maxLeaseId during restore. Fixes . () Backups: Verify host when default and custom credentials are used. Fixes . () Backups: Split lists when restoring from backup. () Fix bug related to posting list split, and re-enable posting list splits. Fixes . () Allow overwriting values of predicates of type uid. Fixes . () Algorithms to handle UidPack. () Improved latency in live loader using conflict resolution at client level. () Set ZSTD CompressionLevel to 1. () Splits are now disabled. () Disk based re-indexing: while re-indexing a predicate, the temp data is now written on disk instead of keeping it in memory. This improves index rebuild for large datasets. () Enterprise features Breaking changes Change default behavior to block operations with ACLs enabled. () Remove unauthorized predicates from query instead of rejecting the query entirely. () Add `debuginfo` subcommand to dgraph. () Support filtering on non-indexed predicate. Fixes . () Add support for variables in recurse. Fixes . (). Adds `@noconflict` schema directive to prevent conflict detection. This is an experimental feature. This is not a recommended directive, but exists to help avoid conflicts for predicates which don't have high correctness requirements. Fixes . () Implement the state HTTP endpoint on Alpha. Login is required if ACL is enabled. (). Implement `/health?all` endpoint on Alpha nodes. () Add `/health` endpoint to Zero. () Breaking changes Support for fetching facets from value edge list. The query response format is backwards-incompatible. Fixes . () Enterprise features Add guardians group with full authorization. () Infer type of schema from JSON and RDF mutations. Fixes . () Fix retrieval of facets with cascade. Fixes . () Do not use type keys during tablet size calculation. Fixes . () Fix Levenshtein distance calculation with match function. Fixes . () Add `<xs:integer>` RDF type for int schema type. Fixes . () Allow `@filter` directive with expand queries. Fixes . (). A multi-part posting list should only be accessed via the main key. Accessing the posting list via one of the other keys was causing issues during rollup and adding spurious keys to the database. Now fixed. () Enterprise features Backup types. Fixes . () Breaking changes for expand() queries Remove `expand(forward)` and `expand(reverse)`. () Change `expand(all)` functionality to only include the predicates in the type. () Add support for Go Modules. () Simplify type definitions: type definitions no longer require the type (string, int, etc.) per field name. () Adding log lines to help troubleshoot snapshot and rollup. () Add `--http` flag to configure pprof endpoint for live loader. () Use snappy compression for internal gRPC communication. () Periodically run GC in all dgraph commands. (, ) Exit early if data files given to bulk loader are empty. () Add support for first and offset directive in has function. () Pad encData to 17 bytes before decoding. () Remove usage of deprecated methods. () Show line and column numbers for errors in HTTP API responses. () Do not store non-pointer values in sync.Pool. () Verify that all the fields in a type exist in the schema. () Update badger to version v2.0.0. () Introduce StreamDone in bulk loader. () Enterprise features: ACL: Disallow schema queries when an user has not logged in. () Block delete if predicate permission is zero. Fixes . () Support `@cascade` directive at

() Support `@normalize` directive for subqueries. () Support `val()` function inside upsert mutations (both RDF and JSON). (, ) Support GraphQL Variables for facet values in `@facets` filters. () Support filtering by facets on values. () Add ability to query `expand(TypeName)` only on certain types. () Expose numUids metrics per query to estimate query cost. () Upsert queries now return query results in the upsert response. (, ) Add support for multiple mutations blocks in upsert blocks. () Add total time taken to process a query in result under `"total_ns"` field. () Enterprise features: Add encryption-at-rest. () Breaking change: Remove `@type` directive from query language. To filter an edge by a type, use `@filter(type(TypeName))` instead of `@type(TypeName)`. () Enterprise features: Remove regexp ACL rules. () Avoid changing order if multiple versions of the same edge is found. Consider reverse count index keys for conflict detection in transactions. Fixes . () Clear the unused variable tlsCfg. () Do not require the last type declaration to have a new line. () Verify type definitions do not have duplicate fields. Fixes . () Fix bug in bulk loader when store_xids is true. Fixes . () Call cancel function only if err is not nil. Fixes . () Change the mapper output directory from $TMP/shards to $TMP/map_output. Fixes . () Return error if keywords used as alias in groupby. () Fix bug where language strings are not filtered when using custom tokenizer. Fixes . () Support named queries without query variables. Fixes . () Correctly set up client connection in x package. () Fix data race in regular expression processing. Fixes . () Check for n.Raft() to be nil, Fixes . () Fix file and directory permissions for bulk loader. () Ensure that clients can send OpenCensus spans over to the server. () Change lexer to allow unicode escape sequences. Fixes .() Handle the count(uid) subgraph correctly. Fixes . () Don't traverse immutable layer while calling iterate if deleteBelowTs > 0. Fixes . () Bulk loader allocates reserved predicates in first reduce shard. Fixes . () Only allow one alias per predicate. () Change member removal logic to remove members only once. () Disallow uid as a predicate name. () Drain apply channel when a snapshot is received. () Added RegExp filter to func name. Fixes . () Acquire read lock instead of exclusive lock for langBaseCache. () Added proper handling of int and float for math op. . () Don't delete group if there is no member in the group. () Sort alphabets of languages for non indexed fields. Fixes . () Copy xid string to reduce memory usage in bulk loader. () Adding more details for mutation error messages with scalar/uid type mismatch. () Limit UIDs per variable in upsert. Fixes . () Return error instead of panic when geo data is corrupted. Fixes . () Use txn writer to write schema postings. () Fix connection log message in dgraph alpha from "CONNECTED" to "CONNECTING" when establishing a connection to a peer. Fixes . () Fix segmentation fault in backup. () Close store after stoping worker. () Don't pre allocate mutation map. () Cmd: fix config file from env variable issue in subcommands. Fixes . () Fix segmentation fault in Alpha. Fixes . () Fix handling of depth parameter for shortest path query for numpaths=1 case. Fixes . () Do not return dgo.ErrAborted when client calls txn.Discard(). () Fix `has` pagination when predicate is queried with `@lang`. Fixes

() Make uid function work with value variables in upsert blocks. Fixes . () Enterprise features: Fix bug when overriding credentials in backup request. Fixes . () Create restore directory when running "dgraph restore". Fixes . () Write group_id files to postings directories during restore. () Breaking changes uid schema type: The `uid` schema type now means a one-to-one relation, not a one-to-many relation as in Dgraph v1.1. To specify a one-to-many relation in Dgraph v1.0, use the `, , ) \_predicate\_ is removed from the query language. expand(\_all\_) only works for nodes with attached type information via the type system. The type system is used to determine the predicates to expand out from a node. () S \* \* deletion only works for nodes with attached type information via the type system. The type system is used to determine the predicates to delete from a node. For `S ` deletions, only the predicates specified by the type are deleted. HTTP API: The HTTP API has been updated to replace the custom HTTP headers with standard headers. Change `/commit` endpoint to accept a list of preds for conflict detection. () Remove custom HTTP Headers, cleanup API. () The startTs path parameter is now a query parameter `startTs` for the `/query`, `/mutate`, and `/commit` endpoints. Dgraph custom HTTP Headers `X-Dgraph-CommitNow`, `X-Dgraph-MutationType`, and `X-Dgraph-Vars` are now ignored. Update HTTP API Content-Type headers. () () Queries over HTTP must have the Content-Type header `application/graphql+-` or `application/json`. Queries over HTTP with GraphQL Variables (e.g., `query queryName($a: string) { ... }`) must use the query format via `application/json` to pass query variables. Mutations over HTTP must have the Content-Type header set to `application/rdf` for RDF format or `application/json` for JSON format. Commits over HTTP must have the `startTs` query parameter along with the JSON map of conflict keys and predicates. Datetime index: Use UTC Hour, Day, Month, Year for datetime comparison. This is a bug fix that may result in different query results for existing queries involving the datetime index. () Blank node name generation for JSON mutations. For JSON mutations that do not explicitly set the `"uid"` field, the blank name format has changed to contain randomly generated identifiers. This fixes a bug where two JSON objects within a single mutation are assigned the same blank node. () Improve hash index. () Use a stream connection for internal connection health checking. () Use defer statements to release locks. () VerifyUid should wait for membership information. () Switching to perfect use case of sync.Map and remove the locks. () Tablet move and group removal. () Delete tablets which don't belong after tablet move. () Alphas inform Zero about tablets in its postings directory when Alpha starts. () Prevent alphas from asking zero to serve tablets during queries. () Put data before extensions in JSON response. () Always parse language tag. () Populate the StartTs for the commit gRPC call so that clients can double check the startTs still matches. () Replace MD5 with SHA-256 in `dgraph cert ls`. () Fix use of deprecated function `grpc.WithTimeout()`. () Introduce multi-part posting lists. () Fix format of the keys to support startUid for multi-part posting lists. () Access groupi.gid atomically. () Move Raft checkpoint key to w directory. () Remove list.SetForDeletion method, remnant of the global LRU cache. () Whitelist by hostname. () Use CIDR format for whitelists instead of the previous range format. Introduce Badger's DropPrefix API into Dgraph to simplify how predicate deletions and drop all work internally. () Replace integer compression in UID Pack with groupvarint

(, ) Rebuild reverse index before count reverse. () Breaking change: Use one atomic variable to generate blank node ids for json objects. This changes the format of automatically generated blank node names in JSON mutations. () Print commit SHA256 when invoking "make install". () Print SHA-256 checksum of Dgraph binary in the version section logs. () Change anonynmous telemetry endpoint. () Add support for API required for multiple mutations within a single call. () Make `lru_mb` optional. () Allow glog flags to be set via config file. (, ) Logging Suppress logging before `flag.Parse` from glog. () Move glog of missing value warning to verbosity level 3. () Change time threshold for Raft.Ready warning logs. () Add log prefix to stream used to rebuild indices. () Add additional logs to show progress of reindexing operation. () Error messages Output the line and column number in schema parsing error messages. () Improve error of empty block queries. () Update flag description and error messaging related to `--queryedgelimit` flag. () Reports line-column numbers for lexer/parser errors. () Replace fmt.Errorf with errors.Errorf () Return GraphQL compliant `"errors"` field for HTTP requests. () Optimizations Don't read posting lists from disk when mutating indices. (, ) Avoid preallocating uid slice. It was slowing down unpackBlock. Reduce memory consumption in bulk loader. () Reduce memory consumptino by reusing lexer for parsing RDF. () Use the stream framework to rebuild indices. () Use Stream Writer for full snapshot transfer. () Reuse postings and avoid fmt.Sprintf to reduce mem allocations () Speed up JSON chunker. () Various optimizations for Geo queries. () Update various govendor dependencies Add OpenCensus deps to vendor using govendor. () Govendor in latest dgo. () Vendor in the Jaeger and prometheus exporters from their own repos () Vendor in Shopify/sarama to use its Kafka clients. () Update dgo dependency in vendor. () Update vendored dependencies. () Bring in latest changes from badger and fix broken API calls. () Vendor badger with the latest changes. () Vendor in badger, dgo and regenerate protobufs. () Vendor latest badger. () Breaking change: Vendor in latest Badger with data-format changes. () Dgraph Debug Tool When looking up a key, print if it's a multi-part list and its splits. () Diagnose Raft WAL via debug tool. () Allow truncating Raft logs via debug tool. () Allow modifying Raft snapshot and hardstate in debug tool. () Dgraph Live Loader / Dgraph Bulk Loader Add `--format` flag to Dgraph Live Loader and Dgraph Bulk Loader to specify input data format type. () Update live loader flag help text. () Improve reporting of aborts and retries during live load. () Remove xidmap storage on disk from bulk loader. Optimize XidtoUID map used by live and bulk loader. () Export data contains UID literals instead of blank nodes. Using Live Loader or Bulk Loader to load exported data will result in the same UIDs as the original database. (, ) To preserve the previous behavior, set the `--new_uids` flag in the live or bulk loader. () Use StreamWriter in bulk loader. (, , ) Add timestamps during bulk/live load. () Use initial schema during bulk load. () Adding the verbose flag to suppress excessive logging in live loader. () Fix user meta of schema and type entries in bulk loader. () Check that all data files passed to bulk loader exist. () Handle non-list UIDs predicates in bulk loader. Use sync.Pool for MapEntries in bulk loader. (, ) Dgraph Increment Tool Add server-side and client-side latency numbers to increment

() Add `--retries` flag to specify number of retry requests to set up a gRPC connection. () Add TLS support to `dgraph increment` command. () Add bash and zsh shell completion. See `dgraph completion bash --help` or `dgraph completion zsh --help` for usage instructions. () Add support for ECDSA in dgraph cert. () Add support for JSON export via `/admin/export?format=json`. () Add the SQL-to-Dgraph migration tool `dgraph migrate`. () Add `assigntimestampns` latency field to fix encoding_ns calculation. Fixes . (, ) Adding draining mode to Alpha. () Enterprise features Support applying a license using /enterpriseLicense endpoint in Zero. () Don't apply license state for oss builds. () Query Type system Add `type` function to query types. () Parser for type declaration. () Add `@type` directive to enforce type constraints. () Store and query types. () Rename type predicate to dgraph.type () Change definition of dgraph.type pred to ) Use type when available to resolve expand predicates. () Include types in results of export operation. () Support types in the bulk loader. () Add the `upsert` block to send "query-mutate-commit" updates as a single call to Dgraph. This is especially helpful to do upserts with the `@upsert` schema directive. Addresses . () Add support for conditional mutation in Upsert Block. () Allow querying all lang values of a predicate. () Allow `regexp()` in `@filter` even for predicates without the trigram index. () Add `minweight` and `maxweight` arguments to k-shortest path algorithm. () Allow variable assignment of `count(uid)`. () Reserved predicates During startup, don't upsert initial schema if it already exists. () Use all reserved predicates in IsReservedPredicateChanged. () Fuzzy match support via the `match()` function using the trigram index. () Support for GraphQL variables in arrays. () Show total weight of path in shortest path algorithm. () Rename dgraph `--dgraph` option to `--alpha`. () Support uid variables in `from` and `to` arguments for shortest path query. Fixes . () Add support for `len()` function in query language. The `len()` function is only used in the `@if` directive for upsert blocks. `len(v)` It returns the length of a variable `v`. (, ) Mutation Add ability to delete triples of scalar non-list predicates. (, ) Allow deletion of specific language. () Alter Add DropData operation to delete data without deleting schema. () Schema Breaking change: Add ability to set schema to a single UID schema. Fixes . (, , ) If you wish to create one-to-one edges, use the schema type `uid`. The `uid` schema type in v1.0.x must be changed to `[uid]` to denote a one-to-many uid edge. Prevent dropping or altering reserved predicates. () () Reserved predicate names start with `dgraph.` . Support comments in schema. () Reserved predicates Reserved predicates are prefixed with "dgraph.", e.g., `dgraph.type`. Ensure reserved predicates cannot be moved. () Allow schema updates to reserved preds if the update is the same. () Enterprise feature: Access Control Lists (ACLs) Enterprise ACLs provide read/write/admin permissions to defined users and groups at the predicate-level. Enforcing ACLs for query, mutation and alter requests. () Don't create ACL predicates when the ACL feature is not turned on. () Add HTTP API for ACL commands, pinning ACL predicates to group 1. () ACL: Using type to distinguish user and group. () Reduce the value of ACL TTLs to reduce the test running time. () Adds `--aclcachettl` flag. Fix panic when deleting a user or group that does not exist. () ACL over TLS. () Using read-only queries for ACL refreshes. () When HttpLogin response context error, unmarshal and return the response

() Refactor: avoid double parsing of mutation string in ACL. () Security fix: prevent the HmacSecret from being logged. () Enterprise feature: Backups Enterprise backups are Dgraph backups in a binary format designed to be restored to a cluster of the same version and configuration. Backups can be stored on local disk or stored directly to the cloud via AWS S3 or any Minio-compatible backend. Fixed bug with backup fan-out code. () Incremental backups / partial restore. () Turn obsolete error into warning. () Add `dgraph lsbackup` command to list backups. () Add option to override credentials and use public buckets. () Add field to backup requests to force a full backup. () More refactoring of backup code. () Use gzip compression in backups. () Allow partial restores and restoring different backup series. () Store group to predicate mapping as part of the backup manifest. () Only backup the predicates belonging to a group. () Introduce backup data formats for cross-version compatibility. () Add series and backup number information to manifest. () Use backwards-compatible formats during backup () Use manifest to only restore preds assigned to each group. () Fixes the toBackupList function by removing the loop. () Add field to backup requests to force a full backup. () Dgraph Zero Zero server shutdown endpoint `/shutdown` at Zero's HTTP port. () Dgraph Live Loader Support live loading JSON files or stdin streams. () () Support live loading N-Quads from stdin streams. () Dgraph Bulk Loader Add `--replace_out` option to bulk command. () Tracing Support exporting tracing data to oc_agent, then to datadog agent. () Measure latency of Alpha's Raft loop. (63f545568) Breaking change: Remove `predicate` predicate within queries. () Remove `--debug_mode` option. () Remove deprecated and unused IgnoreIndexConflict field in mutations. This functionality is superceded by the `@upsert` schema directive since v1.0.4. () Enterprise features Remove `--enterprise_feature` flag. Enterprise license can be applied via /enterpriseLicense endpoint in Zero. () Fix `anyofterms()` query for facets from mutations in JSON format. Fixes . () Fixes error found by gofuzz. () Fix int/float conversion to bool. () Handling of empty string to datetime conversion. () Fix schema export with special chars. Fixes . () Default value should not be nil. () Sanity check for empty variables. () Panic due to nil maps. () ValidateAddress should return true if IPv6 is valid. () Throw error when @recurse queries contain nested fields. () Fix panic in fillVars. () Fix race condition in numShutDownSig in Alpha. () Fix race condition in oracle.go. () Fix tautological condition in zero.go. () Correctness fix: Block before proposing mutations and improve conflict key generation. Fixes . () Reject requests with predicates larger than the max size allowed (longer than 65,535 characters). () Upgrade raft lib and fix group checksum. () Check that uid is not used as function attribute. () Do not retrieve facets when max recurse depth has been reached. () Remove obsolete error message. () Remove an unnecessary warning log. () Fix bug triggered by nested expand predicates. () Empty datetime will fail when returning results. () Fix bug with pagination using `after`. () Fix tablet error handling. () Fix crash when trying to use shortest path with a password predicate. Fixes . () Fix crash for `@groupby` queries. Fixes . () Fix crash when calling drop all during a query. Fixes . () Fix data races in queries. Fixes . () Bulk Loader: Fix memory usage by JSON parser. () Fixing issues in export. Fixes #3610. () Bug Fix: Use

in addReverseMutation if needed for count index () Bug Fix: Remove Check2 at writeResponse. () Bug Fix: Do not call posting.List.release. Preserve the order of entries in a mutation if multiple versions of the same edge are found. This addresses the mutation re-ordering change () from v1.0.15. Fixing the zero client in live loader to avoid using TLS. Fixes . () Remove query cache which is causing contention. (). Fix bug when querying with nested levels of `expand(all)`. Fixes . (). Vendor in Badger to fix a vlog bug "Unable to find log file". () Change lexer to allow unicode escape sequences. Fixes . () Increase max trace logs per span in Alpha. () Include line and column numbers in lexer errors. Fixes . () Release binaries built with Go 1.12.7. Decrease rate of Raft heartbeat messages. (, ) Fix bug when exporting a predicate name to the schema. Fixes . () Return error instead of asserting in handleCompareFunction. () Fix bug where aliases in a query incorrectly alias the response depending on alias order. Fixes . () Fix for panic in fillGroupedVars. Fixes . () Vendor in prometheus/client_golang/prometheus v0.9.4. () Fix panic with value variables in queries. Fixes . () Remove unused reserved predicates in the schema. Fixes . () Vendor in Badger v1.6.0 for StreamWriter bug fixes. () Fix bug that can cause a Dgraph cluster to get stuck in infinite leader election. () Fix bug in bulk loader that prevented loading data from JSON files. () Fix bug with a potential deadlock by breaking circular lock acquisition. () Properly escape strings containing Unicode control characters for data exports. Fixes ) Initialize tablets map when creating a group. () Fix queries with `offset` not working with multiple `orderasc` or `orderdesc` statements. Fixes . () Vendor in bug fixes from badger. (, , ) Use Go v1.12.5 to build Dgraph release binaries. Truncate Raft logs even when no txn commits are happening. () Reduce memory usage by setting a limit on the size of committed entries that can be served per Ready. () Reduce memory usage of pending txns by only keeping deltas in memory. () Reduce memory usage by limiting the number of pending proposals in apply channel. () Reduce memory usage when calculating snapshots by retrieving entries in batches. () Allow snapshot calculations during snapshot streaming. () Allow quick recovery from partitions by shortening the deadline of sending Raft messages to 10s. () Take snapshots less frequently so straggling Alpha followers can catch up to the leader. Snapshot frequency is configurable via a flag (see Added section). () Allow partial snapshot streams to reduce the amount of data needed to be transferred between Alphas. () Use Badger's StreamWriter to improve write speeds during snapshot streaming. () () Call file sync explicitly at the end of TxnWriter to improve performance. () Optimize mutation and delta application. Breaking: With these changes, the mutations within a single call are rearranged. So, no assumptions must be made about the order in which they get executed. () Add logs to show Dgraph config options. () Add `-v=3` logs for reporting Raft communication for debugging. These logs start with `RaftComm:`. () Add Alpha flag `--snapshot_after` (default: 10000) to configure the number of Raft entries to keep before taking a snapshot. () Add Alpha flag `--abortolderthan` (default: 5m) to configure the amount of time since a pending txn's last mutation until it is

() Add Alpha flag `--normalizenodelimit` (default: 10000) to configure the limit for the maximum number of nodes that can be returned in a query that uses the `@normalize` directive. Fixes . () Add Prometheus metrics for latest Raft applied index (`dgraphraftappliedindex`) and the max assigned txn timestamp (`dgraphmaxassignedts`). These are useful to track cluster progress. () Add Raft checkpoint index to WAL for quicker recovery after restart. () Remove size calculation in posting list. () Remove a `-v=2` log which can be too noisy during Raft replay. (). Remove `dgraph_conf` from /debug/vars. Dgraph config options are available via logs. () Fix bugs related to best-effort queries. () Stream Raft Messages and Fix Check Quorum. () Fix lin reads timeouts and AssignUid recursion in Zero. () Fix panic when running `@groupby(uid)` which is not allowed and other logic fixes. () Fix a StartTs Mismatch bug which happens when running multiple best effort queries using the same txn. Reuse the same timestamp instead of allocating a new one. () () Shutdown extra connections. () Fix bug for queries with `@recurse` and `expand(all)`. () Fix assorted cases of goroutine leaks. () Increment tool: Fix best-effort flag name so best-effort queries run as intended from the tool. () Add timeout option while running queries over HTTP. Setting the `timeout` query parameter `/query?timeout=60s` will timeout queries after 1 minute. () Add `badger` tool to release binaries and Docker image. Note: This release supersedes v1.0.12 with bug fixes. If you're running v1.0.12, please upgrade to v1.0.13. It is safe to upgrade in-place without a data export and import. Fix Raft panic. () Log an error instead of an assertion check for SrcUIDs being nil. () Note: This release requires you to export and re-import data prior to upgrading or rolling back. The underlying data format has been changed. Support gzip compression for gRPC and HTTP requests. () Restore is available from a full binary backup. This is an enterprise feature licensed under the Dgraph Community License. Strict schema mode via `--mutations` flag. By default `--mutations=allow` is set to allow all mutations; `--mutations=disallow` disables all mutations; `--mutations=strict` allows mutations only for predicates which are defined in the schema. Fixes . Add `dgraph increment` tool for debugging and testing. The increment tool queries for the specified predicate (default: `counter.val`), increments its integer counter value, and mutates the result back to Dgraph. Useful for testing end-to-end txns to verify cluster health. () Support best-effort queries. This would relax the requirement of linearizible reads. For best-effort queries, Alpha would request timestamps from memory instead of making an outbound request to Zero. () Use the new Stream API from Badger instead of Dgraph's Stream framework. () Discard earlier versions of posting lists. () Make HTTP JSON response encoding more efficient by operating on a bytes buffer directly. () Optimize and refactor facet filtering. () Show badger.Item meta information in `dgraph debug` output. Add new option to `dgraph debug` tool to get a histogram of key and value sizes. () Add new option to `dgraph debug` tool to get info from a particular read timestamp. Refactor rebuild index logic. (, ) For gRPC clients, schema queries are returned in the Json field. The Schema proto field is deprecated. Simplify design and make tablet moves robust. () Switch all node IDs to hex in logs (e.g., ID 0xa instead of ID 10), so they are consistent with Raft logs. Refactor reindexing code to only reindex specific tokenizers. () Introduce group checksums. (, ) Return aborted error if commit ts is 0. Reduce number of "ClusterInfoOnly" requests to Zero by making VerifyUid wait for membership information. () Simplify Raft WAL storage

() Build release binary with Go version 1.11.5. Remove LRU cache from Alpha for big wins in query latency reduction (5-10x) and mutation throughput (live loading 1.7x faster). Setting `--lru_mb` is still required but will not have any effect since the cache is removed. The flag will be used later version when LRU cache is introduced within Badger and configurable from Dgraph. Remove `--nomutations` flag. Its functionality has moved into strict schema mode with the `--mutations` flag (see Added section). Use json.Marshal for strings and blobs. Fixes . Let eq use string "uid" as value. Fixes . Skip empty posting lists in `has` function. Fix Rollup to pick max update commit ts. Fix a race condition when processing concurrent queries. Fixes . Show an error when running multiple mutation blocks. Fixes . Bring in optimizations and bug fixes over from Badger. Bulk Loader for multi-group (sharded data) clusters writes out per-group schema with only the predicates owned by the group instead of all predicates in the cluster. This fixes an issue where queries made to one group may not return data served by other groups. () Remove the assert failure in raftwal/storage.go. Integrate OpenCensus in Dgraph. () Add Dgraph Community License for proprietary features. Feature: Full binary backups. This is an enterprise feature licensed under the Dgraph Community License. () Add `--enterprise_features` flag to enable enterprise features. By enabling enterprise features, you accept the terms of the Dgraph Community License. Add minio dep and its deps in govendor. (, ) Add network partitioning tests with blockade tool. () Add Zero endpoints `/assign?what=uids&num=10` and `/assign?what=timestamps&num=10` to assign UIDs or transaction timestamp leases. Adding the acl subcommand to support acl features (still work-in-progress). () Support custom tokenizer in bulk loader () Support JSON data with Dgraph Bulk Loader. () Make posting list memory rollup happen right after disk. () Do not retry proposal if already found in CommittedEntries. () Remove ExportPayload from protos. Export returns Status and ExportRequest. () Allow more escape runes to be skipped over when parsing string literal. () Clarify message of overloaded pending proposals for live loader. () Posting List Evictions. (e2bcfdad) Log when removing a tablet. () Deal better with network partitions in leaders. () Keep maxDelay during timestamp req to 1s. Updates to the version output info. Print the go version used to build Dgraph when running `dgraph version` and in the logs when Dgraph runs. () Print the Dgraph version when running live or bulk loader. () Checking nil values in the equal function () Optimize query: UID expansion. () Split membership sync endpoints and remove PurgeTs endpoint. () Set the Prefix option during iteration. () Replace Zero's `/assignIds?num=10` endpoint with `/assign?what=uids&num=10` (see Added section). Remove type hinting for JSON and RDF schema-less types. () Remove deprecated logic that was found using vet. () Remove assert for zero-length posting lists. () Restore schema states on error. () Refactor bleve tokenizer usage (). Fixes and . Switch to Badger's Watermark library, which has a memory leak fix. (0cd9d82e) Fix tiny typo. () Fix Test: TestMillion. Fix Jepsen bank test. () Fix link to help_wanted. () Fix invalid division by zero error. Fixes . Fix missing predicates after export and bulk load. Fixes . Handle various edge cases around cluster memberships. () Change Encrypt to not re-encrypt password values. Fixes . Correctly parse facet types for both JSON and RDF formats. Previously the parsing was handled differently depending on the input format. () Note: This release requires you to export and re-import

We have changed the underlying storage format. The Alter endpoint can be protected by an auth token that is set on the Dgraph Alphas via the `--auth_token` option. This can help prevent accidental schema updates and drop all operations. () Optimize has function () Expose the health check API via gRPC. () Dgraph is relicensed to Apache 2.0. () Breaking change. Rename Dgraph Server to Dgraph Alpha to clarify discussions of the Dgraph cluster. The top-level command `dgraph server` is now `dgraph alpha`. () Prometheus metrics have been renamed for consistency for alpha, memory, and lru cache metrics. (, , ) The `dgraph-converter` command is available as the subcommand `dgraph conv`. () Updating protobuf version. () Allow checkpwd to be aliased () Better control excessive traffic to Dgraph () Export format now exports on the Alpha receiving the export request. The naming scheme of the export files has been simplified. Improvements to the `dgraph debug` tool that can be used to inspect the contents of the posting lists directory. Bring in Badger updates () Make raft leader resume probing after snapshot crash () Breaking change: Create a lot simpler sorted uint64 codec () Increase the size of applyCh, to give Raft some breathing space. Otherwise, it fails to maintain quorum health. Zero should stream last commit update Send commit timestamps in order () Query blocks with the same name are no longer allowed. Fix out-of-range values in query parser. () This version switches Badger Options to reasonable settings for p and w directories. This removes the need to expose `--badger.options` option and removes the `none` option from `--badger.vlog`. () Add support for ignoring parse errors in bulk loader with the option `--ignore_error`. () Introduction of new command `dgraph cert` to simplify initial TLS setup. See for more info. Add `expand(forward)` and `expand(reverse)` to GraphQL+- query language. If `forward` is passed as an argument to `expand()`, all predicates at that level (minus any reverse predicates) are retrieved. If `reverse` is passed as an argument to `expand()`, only the reverse predicates are retrieved. Rename intern pkg to pb () Remove LinRead map logic from Dgraph () Sanity length check for facets mostly. Make has function correct w.r.t. transactions () Increase the snapshot calculation interval, while decreasing the min number of entries required; so we take snapshots even when there's little activity. Convert an assert during DropAll to inf retry. () Fix a bug which caused all transactions to abort if `--expand_edge` was set to false. Fixes . Set the Applied index in Raft directly, so it does not pick up an index older than the snapshot. Ensure that it is in sync with the Applied watermark. Fixes . Pull in Badger updates. This also fixes the Unable to find log file, retry error. Improve efficiency of readonly transactions by reusing the same read ts () Fix a bug in Raft.Run loop. () Fix a few issues regarding snapshot.Index for raft.Cfg.Applied. Do not overwrite any existing data when apply txn commits. Do not let CreateSnapshot fail. Consider all future versions of the key as well, when deciding whether to write a key or not during txn commits. Otherwise, we'll end up in an endless loop of trying to write a stale key but failing to do so. When testing inequality value vars with non-matching values, the response was sent as an error although it should return empty result if the query has correct syntax. () Switch traces to glogs in

() Improve error handling for `dgraph live` for errors when processing RDF and schema files. () Fix task conversion from bool to int that used uint32 () Fix `expand(all)` in recurse queries (). Add language aliases for broader support for full text indices. () Introduce a new /assignIds HTTP endpoint in Zero, so users can allocate UIDs to nodes externally. Add a new tool which retrieves and increments a counter by 1 transactionally. This can be used to test the sanity of Dgraph cluster. This version introduces tracking of a few anonymous metrics to measure Dgraph adoption (). These metrics do not contain any specifically identifying information about the user, so most users can leave it on. This can be turned off by setting `--telemetry=false` flag if needed in Dgraph Zero. Correctly handle a list of type geo in json (, ). Fix the graceful shutdown of Dgraph server, so a single Ctrl+C would now suffice to stop it. Fix various deadlocks in Dgraph and set ConfState in Raft correctly (). Significantly decrease the number of transaction aborts by using SPO as key for entity to entity connections. (). Do not print error while sending Raft message by default. No action needs to be taken by the user, so it is set to V(3) level. Set the `--conc` flag in live loader default to 1, as a temporary fix to avoid tons of aborts. All Oracle delta streams are applied via Raft proposals. This deals better with network partition like edge-cases. Fix deadlock in 10-node cluster convergence. Fixes . Make ReadIndex work safely. Simplify snapshots, leader now calculates and proposes snapshots to the group. . Make snapshot streaming more robust. Consolidate all txn tracking logic into Oracle, remove inSnapshot logic. . Bug fix in Badger, to stop panics when exporting. Use PreVote to avoid leader change on a node join. Fix a long-standing bug where `raft.Step` was being called via goroutines. It is now called serially. Fix context deadline issues with proposals. . Support GraphQL vars as args for Regexp function. Support GraphQL vars with filters. Add JSON mutations to raw HTTP. Fix math >= evaluation. Avoid race condition between mutation commit and predicate move. Ability to correctly distinguish float from int in JSON. Remove dummy data key. Serialize applying of Raft proposals. Concurrent application was complex and cause of multiple bugs. . Improve Zero connections. Fix bugs in snapshot move, refactor code and improve performance significantly. , Add error handling to GetNoStore. Fixes . Fix bugs in Bulk loader. Posting List and Raft bug fixes. Pull in Badger v1.5.2. Raft storage is now done entirely via Badger. This reduces RAM consumption by previously used MemoryStorage. Trace how node.Run loop performs. Allow tweaking Badger options. Note: This change modifies some flag names. In particular, Badger options are now exposed via flags named with `--badger.` prefix. Option to have server side sequencing. Ability to specify whitelisted IP addresses for admin actions. Fix bug where predicate with string type sometimes appeared as `_:uidffffffffffffffff` in exports. Validate facet value should be according to the facet type supplied when mutating using N-Quads (). Use `time.Equal` function for comparing predicates with `datetime`(). Skip `BitEmptyPosting` for `has` queries. Return error from query if we don't serve the group for the attribute instead of crashing (). Send `maxpending` in connection state to server (). Fix bug in SP transactions (). Batch and send during snapshot to make snapshots faster. Don't skip schema keys while calculating tablets served. Fix the issue which could lead to snapshot getting blocked for a cluster with replicas

Dgraph server retries indefinitely to connect to Zero. Allow filtering and regex queries for list types with lossy tokenizers. Dgraph server segfault in worker package (). Node crashes can lead to the loss of inserted triples (). Cancel pending transactions for a predicate when predicate move is initiated. Move Go client to its own repo at `dgraph-io/dgo`. Make `expand(all)` return value and uid facets. Add an option to specify a `@lang` directive in schema for predicates with lang tags. Flag `memorymb` has been changed to `lrumb`. The default recommended value for `lru_mb` is one-third of the total RAM available on the server. Support for empty strings in query attributes. Support GraphQL vars in first, offset and after at root. Add support for queryedgelimit flag which can be used to limit number of results for shortest path, recurse queries. Make rebalance interval a flag in Zero. Return latency information for mutation operations. Support @upsert directive in schema. Issues with predicate deletion in a cluster. Handle errors from posting.Get. Correctly update commitTs while committing and startTs == deleteTs. Error handling in abort http handler. Get latest membership state from Zero if uid in mutation > maxLeaseId. Fix bug in Mutate where mutated keys were not filled. Update membership state if we can't find a leader while doing snapshot retrieval. Make snapshotting more frequent, also try aborting long pending transactions. Trim null character from end of strings before exporting. Sort facets after parsing RDF's using bulk loader. Fig bug in SyncIfDirty. Fix fatal error due to TxnTooBig error. Fix bug in dgraph live where some batches could be skipped on conflict error. Fix a bug related to expand(all) queries. Run cleanPredicate and proposeKeyValues sequentially. Serialize connect requests in Zero. Retry snapshot retrieval and join cluster indefinitely. Make client directory optional in dgraph live. Do snapshot in Zero in a goroutine so that Run loop isn't blocked. Support for specifying blank nodes as part of JSON mutation. `dgraph version` command to check current version. `curl` to Docker image. `moveTablet` endpoint to Zero to allow initiating a predicate move. Out of range error while doing `eq` query. Reduce `maxBackOffDelay` to 10 sec so that leader election is faster after restart. Fix bugs with predicate move where some data was not sent and schema not loaded properly on replicas. Fix the total number of RDF's processed when live loader ends. Reindex data when schema is changed to list type to fix adding and deleting new data. Correctly upate uidMatrix when facetOrder is supplied. Inequality operator(`gt` and `lt`) result for non lossy tokenizers. `--zero_addr` flag changed to `--zero` for `dgraph bulk` command. Default ports for Zero have been changed `7080` => `5080`(grpc) and `8080` => `6080`(http). Update badger version and how purging is done to fix CPU spiking when Dgraph is idle. Print predicate name as part of the warning about long term for exact index. Always return predicates of list type in an array. Edges without facet values are also returned when performing sort on facet. Don't derive schema while deleting edges. Better error checking when accessing posting lists. Fixes bug where parts of queries are sometimes omitted when system is under heavy load. Fix missing error check in mutation handling when using CommitNow (gave incorrect error). Fix bug where eq didn't work correctly for the fulltext index. Fix race because of which `replicas` flag was not respected. Fix bug with key copy during predicate move. Fix race in merging keys keys from btree and badger

Fix snapshot retrieval for new nodes by retrieving it before joining the cluster. Write schema at timestamp 1 in bulk loader. Fix unexpected meta fatal error. Fix groupby result incase the child being grouped open has multiple parents. Remove StartTs field from `api.Operation`. Print error message in live loader if its not ErrAborted. Also, stop using membership state and instead use the address given by user. Only send keys corresponding to data that was mutated. Wait for background goroutines to finish in posting package on shutdown. Return error if we cant parse the uid given in json input for mutations. Don't remove `predicate` schema from disk during drop all. Fix panic in expand(all) Make sure at least one field is set while doing Alter. Allow doing Mutate and Alter Operations using dgraph UI. Provide option to user to ignore conflicts on index keys. Language tag parsing in queries now accepts digits (in line with RDF parsing). Ensure that GraphQL variables are declared before use. Export now uses correct blank node syntax. Membership stream doesn't get stuck if node steps down as leader. Fix issue where sets were not being returned after doing a S P deletion when part of same transaction. Empty string values are stored as it is and no strings have special meaning now. Correctly update order of facetMatrix when orderdesc/orderasc is applied. Allow live and bulk loaders to work with multiple zeros. Fix sorting with for predicates with multiple language tags. Fix alias edge cases in normalize directive. Allow reading new index key mutated as part of same transaction. Fix bug in value log GC in badger. SIGINT now forces a shutdown after 5 seconds when there are pending RPCs. `DropAttr` now also removes the schema for the attribute (previously it just removed the edges). Tablet metadata is removed from zero after deletion of predicate. LRU size is changed dynamically now based on `maxmemorymb` Call RunValueLogGC for every GB increase in size of value logs. Upgrade vendored version of Badger. Prohibit string to password schema change. Make purging less aggressive. Check if GraphQL Variable is defined before using. Support for alias while asking for facets. Support for general configuration via environment variables and configuration files. `IgnoreIndexConflict` field in Txn which allows ignoring conflicts on index keys. `expand(all)` now correctly gives all language variants of a string. Indexes now correctly maintained when deleting via `S ` and `S P `. `expand(all)` now follows reverse edges. Don't return uid for nodes without any children when requested through debug flag. GraphQL variables for HTTP endpoints. Variable map can be set as a JSON object using the `X-Dgraph-Vars` header. Abort if CommitNow flag is set and the mutation fails. Live loader treats subjects/predicates that look like UIDs as existing nodes rather than new nodes. Fix bug in `@groupby` queries where predicate was converted to lower case in queries. Fix race condition in IsPeer. (#3432) When showing a predicate with list type, only values without a language tag are shown. To get the values of the predicate that are tagged with a language, query the predicate with that language explicitly. Validate the address advertised by dgraph nodes. Store/Restore peer map on snapshot. Fix rdfs per second reporting in live loader. Fix bug in lru eviction. Proto definitions are split into intern and api. Support for removing dead node from quorum. Support for alias in groupby queries. Add DeleteEdges helper function for Go client. Dgraph tries to abort long running/abandoned transactions. Fix TLS flag parsing for Dgraph server and live loader. Reduce dependencies for Go

`depth` and `loop` arguments should be inside @recurse(). Base36 encode keys that are part of TxnContext and are sent to the client. Fix race condition in expand(all) queries. Fix (--ui) flag not being parsed properly. Transaction HTTP API has been modified slightly. `start_ts` is now a path parameter instead of a header. For `/commit` API, keys are passed in the body. The latest release has a lot of breaking changes but also brings powerful features like Transactions, support for CJK and custom tokenization. Dgraph adds support for distributed ACID transactions (a blog post is in works). Transactions can be done via the Go, Java or HTTP clients (JS client coming). See . Support for Indexing via . Support for CJK languages in the full-text index. We have consolidated all the `server`, `zero`, `live/bulk-loader` binaries into a single `dgraph` binary for convenience. Instructions for running Dgraph can be found in the . For Dgraph server, Raft ids can be assigned automatically. A user can optionally still specify an ID, via `--idx` flag. `--peer` flag which was used to specify another Zero instances IP address is being replaced by `--zero` flag to indicate the address corresponds to Dgraph zero. `port`, `grpcport` and `workerport` flags have been removed from Dgraph server and Zero. The ports are: Internal Grpc: 7080 HTTP: 8080 External Grpc: 9080 (Dgraph server only) Users can set `port_offset` flag, to modify these fixed ports. Queries, mutations and schema updates are done through separate endpoints. Queries can no longer have a mutation block.* Queries can be done via `Query` Grpc endpoint (it was called `Run` before) or the `/query` HTTP handler. `uid` is renamed to `uid`. So queries now need to request for `uid`. Example ``` { bladerunner(func: eq(name@en, "Blade Runner")) { uid name@en } } ``` Facets response structure has been modified and is a lot flatter. Facet key is now `predicate|facet_name`. Examples for and . Query latency is now returned as numeric (ns) instead of string. is now a directive. So queries with `recurse` keyword at root won't work anymore. Syntax for has changed. You need to ask for `count(uid)`, instead of `count()`. Mutations can only be done via `Mutate` Grpc endpoint or via . `Mutate` Grpc endpoint can be used to set/ delete JSON, or set/ delete a list of N-Quads and set/ delete raw RDF strings. Mutation blocks don't require the mutation keyword anymore. Here is an example of the new syntax. ``` { set { <name> <is> <something> . <hometown> <is> "San Francisco" . } } ``` directive and go away. Both these functionalities can now easily be achieved via transactions. `<> <pred> <*>` operations, that is deleting a predicate can't be done via mutations anymore. They need to be done via `Alter` Grpc endpoint or via the `/alter` HTTP handler. Drop all is now done via `Alter`. Schema updates are now done via `Alter` Grpc endpoint or via `/alter` HTTP handler. `Query` Grpc endpoint returns response in JSON under `Json` field instead of protocol buffer. `client.Unmarshal` method also goes away from the Go client. Users can use `json.Unmarshal` for unmarshalling the response. Response for predicate of type `geo` can be unmarshalled into a struct. Example . `Node` and `Edge` structs go away along with the `SetValue...` methods. We recommend using and `DeleteJson` fields to do mutations. Examples of how to use transactions using the client can be found at https://dgraph.io/docs/clients/#go. Embedded dgraph goes away. We havent seen much usage of this feature. And it adds unnecessary maintenance overhead to the code. Dgraph live no longer stores external ids. And hence the `xid` flag is gone.