-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
chore(web): move common/web/utils
→ web/src/engine/common/utils/
🏗️
#12034
Conversation
User Test ResultsTest specification and instructions User tests are not required Test Artifacts
|
db283df
to
c09fa1c
Compare
92a8d4f
to
3bb3bfc
Compare
c09fa1c
to
4fadd9c
Compare
785505d
to
51bf3e9
Compare
4fadd9c
to
30abfa0
Compare
e0144aa
to
5b5b00f
Compare
5b5b00f
to
ac9c703
Compare
30abfa0
to
d087143
Compare
ac9c703
to
e9ecf45
Compare
d087143
to
030fcf1
Compare
e9ecf45
to
bf963e8
Compare
common/web/utils
→ web/src/engine/common/utils/
common/web/utils
→ web/src/engine/common/utils/
🏗️
@@ -16,7 +16,7 @@ builder_describe "Builds the predictive-text model template implementation modul | |||
"@/common/web/keyman-version" \ | |||
"@/common/web/es-bundling" \ | |||
"@/common/models/wordbreakers" \ | |||
"@/common/web/utils" \ | |||
"@/web/src/engine/common/utils" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: this is only going to be okay if we are also moving common/models/templates over, otherwise we are introducing a deep dep from common -> web.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also of note: some of my current predictive-text work is likely to see developer/src/kmc-model
import from common/models/templates
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From #11994 (currently, WIP):
https://github.com/keymanapp/keyman/blob/5011d7fed68f79e0368f42471d2c74bc7742556d/common/models/templates/src/trie-builder.ts pulls in the primary Trie-construction code currently found in kmc-model
. We'll likely want it for user-dictionary support.
Accordingly...
keyman/developer/src/kmc-model/src/build-trie.ts
Lines 1 to 4 in 5011d7f
import { ModelCompilerError, ModelCompilerMessageContext, ModelCompilerMessages } from "./model-compiler-messages.js"; | |
import { callbacks } from "./compiler-callbacks.js"; | |
import { TrieBuilder } from '@keymanapp/models-templates'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In a similar vein, #11088 will want to affect the same section of code (i.e, trie building), adding better Trie compression strategies. The compression part could be kept kmc-model only in theory, but the decompression part will certainly be needed within the live model - and personally, it makes the most sense if the two parts can be tested together in parallel. My current plan is to place the definition for both within common/models/templates
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, that's a bad dependency chain we are setting up for ourselves there -- developer/src/kmc-model -> common/models/templates -> web/src/engine/common/utils.
I think we need to discuss this more before we continue moving things around, because we are treading on each others' toes a bit, and it's liable to become (more of) a mess if we are not careful!
We can't move |
Move files from
common/web/utils
according to the document linked in #11374.Fixes: #12025
@keymanapp-test-bot skip