Feature/elelog 209 elephant index endpoint for getting flattened document#291
Open
hugowetterberg wants to merge 6 commits into
Open
Conversation
Fetch a document directly from the repository and return it in the flattened indexing representation, bypassing the eventual consistency of OpenSearch. Extract the shared repo-to-DocumentState assembly into newDocumentState, reused by the indexer enrichment path.
The document type and language are derived from the document itself, so there's no need to specify them at request time. Add a stored flag that returns the flattened document as it is currently stored in the active index instead of converting the current repository version.
Bump the pinned golangci-lint to v2.12.2 and migrate gomodguard to gomodguard_v2. Quiet the newly-strict goconst (ignore tests and a set of generic serialization/label keys that mean different things in different contexts) and disable the informational govet inline analyzer. Extract header name constants now that there's more than one header literal.
The exp packages carry //go:fix inline directives flagged by the govet inline analyzer; the used functions (slices.Contains, maps.Equal) have been in the standard library since Go 1.21. Migrating drops the golang.org/x/exp dependency and lets us re-enable the inline analyzer.
danijelvukoje
approved these changes
Jun 17, 2026
The golangci-lint action runs 'config verify', which requires ignore-string-values to be an array of patterns rather than a single string. 'golangci-lint run' accepts the scalar form, so this only surfaced in CI.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Depends on ttab/elephant-api#67 which needs a tagged release before merge.