-
Notifications
You must be signed in to change notification settings - Fork 192
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
[BUG] Extractor pipeline extracting additional data which are not specified in configuration.extractor.yaml #421
Comments
|
@DibyaRanjan1 - We don't support filtering every type. Looking at the code, I see support for these resource types: public IEnumerable<string>? ApiNamesToExport { get; init; }
public IEnumerable<string>? LoggerNamesToExport { get; init; }
public IEnumerable<string>? DiagnosticNamesToExport { get; init; }
public IEnumerable<string>? NamedValueNamesToExport { get; init; }
public IEnumerable<string>? ProductNamesToExport { get; init; }
public IEnumerable<string>? BackendNamesToExport { get; init; }
public IEnumerable<string>? TagNamesToExport { get; init; }
public IEnumerable<string>? SubscriptionNamesToExport { get; init; }
public IEnumerable<string>? PolicyFragmentNamesToExport { get; init; } If the extractor downloads more resources than you need, you can always delete those resources from the branch created by the pipeline before merging it into your main branch. |
Here is the supporting docs |
@DibyaRanjan1 you are correct. The empty array doesn't work. Rather than specify an empty array, you can put a bogus name like backendNames: [ ignore]. It's just the way YAML configurations work with .NET configuration. Passing a field with an empty array is essentially the same not passing that field at all; it gets ignored. We went ahead and updated the docs to reflect this. |
@waelkdouh Thank you. It worked. I can still see all the version sets. I request you to support version sets in the extractor configuration. |
Since it's not a top priority for us right now, it would be great if you can submit Apple request and we will be more than happy to merge it. |
I am facing the same issue as DibyaRanjan1. I only want to extract apiNames, namedValueNames and productNames. What is the proper syntax to ignore the others please? I have tried: backendNames: [ignore] backendNames:
|
@eyvictorye - your configuration.extractor.yaml should look like this: backendNames:
- ignore
loggerNames:
- ignore
...etc As noted above, we only support ignoring certain resources. |
@guythetechie yes, my configuration.extractor.yaml file looks just like that and i am only ignoring resources that can be ignored from above. it is just that sometimes it extracts only the resources specify sometimes it extracts all even though i checked the option of using my configuration file for the extractor pipeline run. |
Release version
latest
Describe the bug
[BUG] Extractor pipeline extracting additional data which are not specified in configuration.extractor.yaml
Below is my content is configuration.extractor.yaml . I can see many other data are extracted which makes the pipeline slow and unnceccary. I was expecting only api, namedvalues and product to be extracted.
Expected behavior
I was expecting only api, namedvalues and product to be extracted.
Actual behavior
Many data like backends, diagnostics, gateways, loggers, policyfragemts, subscriptions, tags are downloaded but It was not mentioned in configuration.extractor.yaml. We have lot of data in APIM instance. It is making the pipeline slow and we are getting the data for each pipeline runs.
Reproduction Steps
apiNames:
namedValueNames:
productNames:
backendNames: []
diagnosticNames: []
loggerNames: []
subscriptionNames: []
tagNames: []
policyFragmentNames: []
3. Run the extractor pipeline by using feature/api-code-changes2 .
4. Pipline downloads many data which are not needed. But as expected api, namedvalues and product are extracted correctly.
The text was updated successfully, but these errors were encountered: