Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: finish migrating schema extraction!!!! #2171

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

worstell
Copy link
Contributor

  • migrates FSMs to new extractor
  • deletes legacy code

fixes #1518

@worstell worstell requested a review from alecthomas as a code owner July 25, 2024 20:18
@worstell worstell requested review from a team, deniseli and wesbillman and removed request for a team July 25, 2024 20:18
@worstell worstell force-pushed the worstell/20240725-migrate-fsm branch from 6449427 to fa94aeb Compare July 25, 2024 20:19
@alecthomas
Copy link
Collaborator

Yayyyy! Epic job Lizzy, nice one 😀

@worstell worstell force-pushed the worstell/20240725-migrate-fsm branch from fa94aeb to 9b3e5f6 Compare July 25, 2024 20:45
Copy link
Collaborator

@wesbillman wesbillman left a comment

Choose a reason for hiding this comment

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

Let's gooooooooo!

ftl-project.toml Outdated
Comment on lines 4 to 5
hermit = false
no-git = false
Copy link
Collaborator

Choose a reason for hiding this comment

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

are these required for the schema extraction changes? Similar to the modules.test below.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah not sure where these got picked up, thanks for flagging. let me check them out

Comment on lines +74 to +77
func NewCallDeclExtractor[T schema.Decl](name string, extractFunc ExtractCallDeclFunc[T], callPaths ...string) *analysis.Analyzer {
type Tag struct{} // Tag uniquely identifies the fact type for this extractor.
return NewExtractor(name, (*DefaultFact[Tag])(nil), runExtractCallDeclsFunc[T](extractFunc, callPaths...))
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice!

- migrates FSMs to new extractor
- deletes legacy code

fixes #1518
@worstell worstell force-pushed the worstell/20240725-migrate-fsm branch from 9b3e5f6 to 6f44efb Compare July 25, 2024 20:52
@worstell worstell merged commit 26e7d83 into main Jul 25, 2024
59 checks passed
@worstell worstell deleted the worstell/20240725-migrate-fsm branch July 25, 2024 20:59
@ftl-robot ftl-robot mentioned this pull request Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

refactor go-runtime schema extraction
3 participants