Comments (7)
Hmmm, wouldn't it be a little bit redundant having a structure to hold both modules, and their dependencies and dependents? That is, you can extract all the info in such structure directly from the Modules struct (so long as you're in lib package) so why duplicate this info. 😬
from mbt.
@BuddySpike I am wondering if the serializer should receive some form of options parameters (akin to the ApplyFilters for example) that could be used to define it's intended output, for example something of the likes of
type SerializeOpts struct {
showDependents bool
showDependencies bool
mainColor string
dependentsColor string
dependenciesColor string
}
and based on the passed options the serializer emits the needed graph, this way we can isolate graph generation and all its needed information inside the serializer function (potentially through other methods that aren't exported).
from mbt.
@ojizero Do you think ApplyFilters
should return a more detailed information to support operations like this or is there a better way to do this?
from mbt.
@BuddySpike I'm not sure if ApplyFilters should return more detailed info, since it would expand it's scope from simply applying filters on a manifest, into generating addition info from a manifest. Thoughts ?
from mbt.
It does not necessarily have to be in ApplyFilters
. Could be a wrapper around it. But I guess we need a function that would return a set of filtered modules, their dependencies and dependents in expanded form. This would make it easier to implement operations like "grouped visualisation" right?
For example, what if the return type of ApplyFilters
is something like:
type FilteredModules struct {
Modules Modules
Dependencies Modules // Expanded dependencies
Dependants Modules // Expanded dependents
}
Just a thought, I'm sure something will flesh out once you get the fingers on the keyboard 😄 .
from mbt.
@BuddySpike sorry for the delay on my end but I couldn't find much free time in the past weeks 😅, I opened #116 to discuss how I tried to go about changing the SerializeAsDot method.
from mbt.
@ojizero, Don't apologise man 😄. Thanks again for the awesome contributions. Take it easy!
from mbt.
Related Issues (20)
- Add "default command" behavior HOT 2
- Passing command line arguments to `build` or any command HOT 5
- Versions of other folders as environment variables to current build HOT 4
- .NET core project native support HOT 1
- mbt does not restore a detached head after the build
- ENHANCEMENT: Exclude files from being considered when diffing between commits. HOT 1
- libssl.so.1.0.0 deprecated HOT 9
- Run builds or commands in parallel? HOT 7
- Template function for iterating modules in correct build order HOT 5
- Can't build mbt in alpine based container HOT 6
- Mbt run-in branch "BranchName" -m "createafile" not working
- How file diffrential handle by mbt? HOT 2
- mbt does not work in alpine HOT 2
- Diff build is not working as expected in CI
- Any plans for new Linux Release location? HOT 7
- MBT run-in with -c throws error on GitHub actions - Ubuntu 20.04.4 LTS HOT 2
- Tag a new release to benefit of static linking work brought on master HOT 4
- Improve documentation structure
- [bug] mbt always return exit code 0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mbt.