Skip to content

Conversation

@sudo-suhas
Copy link
Contributor

Type specific handling has a good chance of becoming outdated if and when new attribute types are introduced. Address with following:

  • Use type assertion on generic proto message to check for the presence of attributes field for retrieving as map.
  • Use Go reflection to find the field by name and set value to new attributes created using given map.

Type specific handling has a good chance of becoming outdated if and
when new attribute types are introduced. Address with following:
- Use type assertion on generic proto message to check for the presence
  of attributes field for retrieving as map.
- Use Go reflection to find the field by name and set value to new
  attributes created using given map.
@sudo-suhas sudo-suhas force-pushed the generic-attributes-handling branch from 22a7d26 to 341de71 Compare December 2, 2022 06:28
@sudo-suhas sudo-suhas merged commit a7928f3 into main Dec 2, 2022
@sudo-suhas sudo-suhas deleted the generic-attributes-handling branch December 2, 2022 08:19
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.

3 participants