Skip to content

Conversation

@bhufmann
Copy link
Contributor

@bhufmann bhufmann commented Nov 8, 2024

In the OutputConfigurationQueryParameter the configuration source type id was called typeId and it creates a Configuration object where the same field is called sourceTypeId for the same field. When serializing the Configuration in the derived DataProviderDescriptor over TSP the field is called sourceTypeId and this is not consistent. The returned Configuration should have the exact field names that are used when creating the data provider and the respective configuration.

The Configuration is already API while OutputConfigurationQueryParameter is not, and it's better to change the name there.

Signed-off-by: Bernd Hufmann [email protected]

@bhufmann bhufmann force-pushed the rename_source_type_id branch from fd1800f to de2e1a8 Compare November 8, 2024 21:00
* Map of parameters
*/
public OutputConfigurationQueryParameters(String name, String description, String typeId, Map<String, Object> parameters) {
public OutputConfigurationQueryParameters(String name, String description, String souruceTypeId, Map<String, Object> parameters) {
Copy link
Contributor

Choose a reason for hiding this comment

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

sourceTypeId

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. Thanks

In the OutputConfigurationQueryParameter the configuration source type
id was called typeId and it creates a Configuration object where the
same field is called sourceTypeId for the same field. When serializing
the Configuration in the derived DataProviderDescriptor over TSP the
field is called sourceTypeId and this is not consistent. The returned
Configuration should have the exact field names that are used when
creating the data provider and the respective configuration.

The Configuration is already API while OutputConfigurationQueryParameter
is not, and it's better to change the name there.

Signed-off-by: Bernd Hufmann <[email protected]>
@bhufmann bhufmann force-pushed the rename_source_type_id branch from de2e1a8 to c820854 Compare November 11, 2024 14:40
@bhufmann bhufmann merged commit 878e7d7 into eclipse-tracecompass-incubator:master Nov 11, 2024
@bhufmann bhufmann deleted the rename_source_type_id branch November 11, 2024 14:59
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