Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Set widget id in query header #154
Set widget id in query header #154
Changes from 31 commits
c21b40d
27b1f40
c11ff25
17856fc
8ffd82b
84df731
af3799c
20aed8d
e71b85d
da31599
d735855
960acb6
4f9318c
cca0d54
d7a1019
402cb47
d09b7d5
ab7364e
6ef3072
2e459ab
073396e
099bac1
9fe49c9
659e354
cf86e96
791991b
e7eaf37
f835ace
565e426
bc4a621
b670931
7a0b434
f15061f
01c814a
e2f001e
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't do dataclass here, do a normal class
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done: 01c814a.
Intuively I prefer a data class here. It makes sense to me for
Metadata
to be represented by adataclass
. We use adataclass
more often for similar objects, like theDashboardMetadata
andSpecs
.Though, I do recognize that the
__post_init
and other methods make this class (maybe) too complicated to remain adataclass
.Note that a couple times
dataclasses.<method>
were used, which I had to replace when refactoring this to a normal class.In any case, we can always revert.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be overridden in the CounterSpec class, not in this class
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean with overriden? There is nothing overriden here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't you want to create Widget instance from a method of Tile instance?.. eg turning "abstract tiles" into "concrete widgets"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I like that idea. I am planning to do that in two PRs, this and #150. The tile's make more sense when introducing more specs. I'll rework the other PR on top of this one, so that we can discuss EOD