Factor out ID + Module into a NodeId for different Node types#1271
Factor out ID + Module into a NodeId for different Node types#1271Licenser merged 1 commit intotremor-rs:mainfrom
NodeId for different Node types#1271Conversation
b7b50c1 to
f578f74
Compare
|
This looks great so far :D On |
Pull Request Test Coverage Report for Build 1440009724
💛 - Coveralls |
I don't really know how "hot" tremor scripts get, so unless there's a lot of cloning / sharing in the interpreter then it's probably not worth it. Totally agree on the deps, risks, and compile time argument :P |
|
The script itself is barely ever cloned, and the NodeId is mostly for error handling needs (tell the user when something goes wrong where it gones wrong) during the execution phase it's never (at least I can't think of an instance) used. |
Sounds good! Sorry It's taken me a bit to get back to this PR, moving to a new country :D I'll be working on it today and hopefully finish it up. |
9086fa6 to
c82c17d
Compare
Licenser
left a comment
There was a problem hiding this comment.
I love how this simplifies it down 👍 great work! It only needs a rebase to resolve the conflicts then it'll be good to go 🚀
c82c17d to
126436a
Compare
|
Alright, I think a rebased it properly, but there were some logic changes on main that may have been pulled over incorrectly. Mainly around the match on |
126436a to
8225690
Compare
|
Sorry for the late reply on this, it seems like some of the test are failing at the current state :( |
No worries. I'll go through those tests and get them fixed this weekend. |
2077861 to
db7a6b0
Compare
|
Alright, so I got clippy to run and I'm getting this error for test fg.12 After running: It seems to be an issue with path resolving. Thoughts on where the issue could lie? I think it has to do with pulling in upstream changes. |
db7a6b0 to
a2c8996
Compare
|
@fisherdarling you need to set the environmnt variable |
|
It looks like it's just missing a couple of tests for |
|
Ja given the number probably only a single one :D |
099bb42 to
525c20a
Compare
|
Alrighty! I added a test just pushed a squash commit. I think it's ready for a final CI run |
|
ah sod, didn't quite make it :( |
Signed-off-by: Fisher Darling <fdarlingco@gmail.com>
Head branch was pushed to by a user without write access
525c20a to
ce2987f
Compare
That should do it! |
Licenser
left a comment
There was a problem hiding this comment.
Done :D you're awesome @fisherdarling !
|
Thank you @Licenser! Sorry that took a while! |
|
No reason to be sorry at all :) we appreciate the contribution a lot! |
Pull request
Description
This PR factors out many instances of
id: Stringandmodule: Vec<String>into a new type,NodeId.Thoughts / Main changes.
#[serde(flatten)]will keep the same functionality. I did not add it in since I passed all of the tests.FullyQualifiedNamewith afqnfunction that calculates the fully qualified name. I then replaced thefqXnmethods withfqn. It feels cleaner.NodeIdfeels like an ok name, could use suggestions.moduleanArrayVec.Related
Checklist
I'll update the changelog once we commit to the trait / naming.
Performance