Skip to content

Migrate Directory to within Crosslink repo#669

Open
kurtnordstrom wants to merge 87 commits into
mainfrom
directory-migrate-candidate-2
Open

Migrate Directory to within Crosslink repo#669
kurtnordstrom wants to merge 87 commits into
mainfrom
directory-migrate-candidate-2

Conversation

@kurtnordstrom

Copy link
Copy Markdown
Contributor

No description provided.

skomorokh and others added 30 commits November 19, 2024 14:55
Notably adds updating of symbols and moves more of Entry update to happen in Go and simplifies the query
Notably includes a helper function "elementHasProperty" to aid in
unrolling joined rows by checking if we've already added the data for
one of the embedded entities.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 213 out of 221 changed files in this pull request and generated 4 comments.

Comment thread directory/auth/auth.go Outdated
Comment thread directory/test/env_entry_test.go Outdated
Comment thread directory/Makefile Outdated
Comment thread directory/app/app.go
@kurtnordstrom
kurtnordstrom marked this pull request as ready for review July 21, 2026 12:42
Comment thread broker/adapter/api_directory.go Outdated
Comment thread directory/api.yaml Outdated
Comment thread go.work.sum Outdated

@adamdickmeiss adamdickmeiss left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The top-level README.md should mention the directory directory as it includes, now, an application.

@jakub-id

Copy link
Copy Markdown
Contributor

@kurtnordstrom what happened with the existing directory API/schema used by the broker and the mock? Was it moved?

@kurtnordstrom

Copy link
Copy Markdown
Contributor Author

@kurtnordstrom what happened with the existing directory API/schema used by the broker and the mock? Was it moved?

Yes, it is now in the directory-mock folder

@adamdickmeiss
adamdickmeiss self-requested a review July 23, 2026 12:45
Comment thread Makefile Outdated
GO ?= go
SUBDIRS := testutil iso18626 ncip directory sru marcxml httpclient zoom illmock broker
TOOL_SUBDIRS := iso18626 ncip directory sru marcxml broker
SUBDIRS := testutil iso18626 ncip directory directory-mock sru marcxml httpclient zoom illmock broker

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

directory-mock is compiled after directory. If the directory definition changes, then directory will be compiled with old-definitions.

File directory_gen.go is in two places now, one of which is in git. Regardless of whether in git or not, there should only be one generated file.

@adamdickmeiss

adamdickmeiss commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Something is up with the directory/Makefile:

[adam@chicken directory]$ make
go tool sqlc generate
go tool oapi-codegen --config=oapi-codegen.yaml api.yaml
go build -v -o directory ./cmd/directory
[adam@chicken directory]$ make
go tool sqlc generate
go tool oapi-codegen --config=oapi-codegen.yaml api.yaml
go build -v -o directory ./cmd/directory

I would expect 2nd make to do nothing.

@kurtnordstrom
kurtnordstrom force-pushed the directory-migrate-candidate-2 branch from 614b8e9 to 9fb5570 Compare July 24, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

6 participants