gchq / Gaffer

A large-scale entity and relation database supporting aggregation of properties
Apache License 2.0
1.75k stars 354 forks source link

Option to run Federated Operation on all graphs except for specified graphs #3224

Open GCHQDeveloper314 opened 1 month ago

GCHQDeveloper314 commented 1 month ago

Describe the new feature you'd like An ability to specify the IDs of graphs to exclude from a Federated Operation. This would have the opposite effect to the existing graphIds option of the Federated Operation.

Why do you want this feature? The Federated Operation has an option to specify a set of graph IDs to run the operation on. Currently if no graph IDs are specified using this, then the operation is run on all graphs in the Federated Store (assuming there's no admin config to override this).

Sometimes there might be a lot of graphs and a user might want to run an operation on most of these (e.g. 9 out of 10 graphs). Instead of specifying all 9 graph IDs, it would be easier to give just the ID of the graph that should be excluded.

Additional context Originally an idea from @GCHQDev404. Some work towards this has been done on the branch federated-store-GraphIdExclusion-option. This includes adding a new option called excludedGraphIds.