Skip to content

Comments on "Frallax feedback"#1

Open
siwei-zhang-work wants to merge 3 commits intofrallax:masterfrom
siwei-zhang-work:frallax-feedback
Open

Comments on "Frallax feedback"#1
siwei-zhang-work wants to merge 3 commits intofrallax:masterfrom
siwei-zhang-work:frallax-feedback

Conversation

@siwei-zhang-work
Copy link
Copy Markdown

This is a direct copy of branch "frallax-config-refactor" to write comments.

* the
* @throws TmfConfigurationException if an error occurs
*/
public static void remove(ITmfConfiguration config, @NonNull ITmfTrace trace, String baseAnalysisId) throws TmfConfigurationException {
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

create() and remove() includes how the analysis module is initialized and how the configuration file is managed. But we're writing config files in our own specified location (per data provider id), so those are preferably in our own code?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

And if we move create() and remove() to internal code, AbstractTmfDataProviderConfigurator.traceOpened() and TmfConfiguration.readConfigurations() also needs to be in internal code, because we no longer have control over where we store the files.

*/
module.setConfiguration(config);
if (writeConfig) {
IPath traceConfigPath = TmfConfiguration.getConfigurationRootFolder(trace, config.getSourceTypeId());
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Here we can't store it per config.getSourceTypeId() as it'll cause conflict when different data providers are using the same config source type id.

module.setConfiguration(config);
if (writeConfig) {
IPath traceConfigPath = TmfConfiguration.getConfigurationRootFolder(trace, config.getSourceTypeId());
TmfConfiguration.writeConfiguration(config, traceConfigPath);
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Also here we'll be writing a configuration to file whenever we create an analysis module, which is still binding one configuration file to one analysis module. So the configuration on data provider level will still needs to be a parallel implementation. Which means we'll be writing configuration to file in different places in the code.

frallax added a commit that referenced this pull request Apr 3, 2025
frallax added a commit that referenced this pull request Apr 3, 2025
frallax added a commit that referenced this pull request Apr 10, 2025
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.

2 participants