{"id":28535135,"url":"https://github.com/gerritcodereview/modules_global-refdb","last_synced_at":"2026-07-02T15:34:58.612Z","repository":{"id":199886884,"uuid":"691017612","full_name":"GerritCodeReview/modules_global-refdb","owner":"GerritCodeReview","description":"Global ref-database interface for use with a multi-site setup of Gerrit Code Review  - (mirror of https://gerrit.googlesource.com/modules/global-refdb)","archived":false,"fork":false,"pushed_at":"2026-03-12T14:49:35.000Z","size":2312,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2026-03-12T20:30:03.327Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://gerrit.googlesource.com/modules/global-refdb","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GerritCodeReview.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-09-13T10:41:04.000Z","updated_at":"2026-03-12T14:04:49.000Z","dependencies_parsed_at":"2023-10-13T06:22:24.758Z","dependency_job_id":"b32ac836-6454-4d2f-a854-ce58eb3cf8fc","html_url":"https://github.com/GerritCodeReview/modules_global-refdb","commit_stats":null,"previous_names":["gerritcodereview/modules_global-refdb"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/GerritCodeReview/modules_global-refdb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GerritCodeReview%2Fmodules_global-refdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GerritCodeReview%2Fmodules_global-refdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GerritCodeReview%2Fmodules_global-refdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GerritCodeReview%2Fmodules_global-refdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GerritCodeReview","download_url":"https://codeload.github.com/GerritCodeReview/modules_global-refdb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GerritCodeReview%2Fmodules_global-refdb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35053491,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-02T02:00:06.368Z","response_time":173,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-09T17:14:11.136Z","updated_at":"2026-07-02T15:34:58.604Z","avatar_url":"https://github.com/GerritCodeReview.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gerrit interface to a global-refdb\n\nGlobal ref-database interface for use with Gerrit Code Review.\n\nEnables the de-coupling between Gerrit, its libModules and the different\nimplementations of a globally shared ref-database.\n\n## Design\n\n[The design for a global ref-db interface](https://gerrit.googlesource.com/plugins/multi-site/+/refs/heads/master/DESIGN.md#global-ref_db-plugin)\ncan be found as part of the multi-site design documentation, where it first\noriginated and was approved by the community.\n\n## Bindings\n\nIn order to consume this library, some Guice bindings need to be registered\nappropriately. More information in the relevant [documentation](./bindings.md).\n\n## Metrics\n\nGlobal ref-database expose metrics to measure the global ref-database operation latency.\nList of the available metrics can be found [here](./metrics.md).\n\n## How to build\n\nThis libModule is built like a Gerrit in-tree plugin, using Bazelisk.\n\n### Build in Gerrit tree\n\nCreate a symbolic link of the repository source to the Gerrit source tree /plugins/global-refdb directory.\n\nExample:\n\n```\ngit clone https://gerrit.googlesource.com/gerrit\ngit clone https://gerrit.googlesource.com/modules/global-refdb\ncd gerrit/plugins\nln -s ../../global-refdb .\n```\n\nFrom the Gerrit source tree issue the command `bazelisk build plugins/global-refdb`\n\nExample:\n\n```\nbazelisk build plugins/global-refdb\n```\n\nThe libModule jar file is created under `bazel-bin/plugins/global-refdb/global-refdb.jar`\n\nTo execute the tests run `bazelisk test plugins/global-refdb/...` from the Gerrit source tree.\n\nExample:\n\n```\nbazelisk test plugins/global-refdb/...\n```\n\n## How to import into Eclipse as a project\n\nAdd `global-refdb` in the `CUSTOM_PLUGINS` section of the `tools/bzl/plugins.bzl`.\n\nExample:\n\n```\nCUSTOM_PLUGINS = [\n    \"global-refdb\",\n]\n```\n\nRun `tools/eclipse/project.py` for generating or updating the Eclipse project.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgerritcodereview%2Fmodules_global-refdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgerritcodereview%2Fmodules_global-refdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgerritcodereview%2Fmodules_global-refdb/lists"}