Skip to content
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

restructures ResultType and decouples printing into ResultPrinters: #3512

Merged
merged 20 commits into from
Aug 22, 2024

Conversation

awildturtok
Copy link
Collaborator

  • ResultType is now very simple mix of primitive enum and LIST. (We hope to remove even more logic from it)
  • Result printing was always weird with Mappings embedded in StringT. We've moved that responsibility into ResultInfo via SelectResultInfo for mapped Selects.
  • This PR opens the possibility to embed anonymization into the ResultInfo.
  • PrintSettings now caches the C10n calls as they were before that sometimes invoked per cell, which should make rendering faster.

@awildturtok awildturtok requested a review from thoniTUB July 31, 2024 15:00
- ResultType is now very simple mix of primitive enum and LIST. (We hope to remove even more logic from it)
- Result printing was always weird with Mappings embedded in StringT. We've moved that responsibility into ResultInfo via SelectResultInfo for mapped Selects.
- This PR opens the possibility to embed anonymization into the ResultInfo.
- PrintSettings now caches the C10n calls as they were before that sometimes invoked per cell, which should make rendering faster.
@awildturtok awildturtok force-pushed the feature/decouple-printing-from-ResultTyoe branch from df3f1cc to e688d98 Compare July 31, 2024 15:31
Copy link
Collaborator

@thoniTUB thoniTUB left a comment

Choose a reason for hiding this comment

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

Gefällt mir :)
So weit iche s gesehen habe ist jetzt noch mapping testenoffen mit den verschiedenen typen und den C10n Cache finde ich in den PrintSettings nicht so gut aufgehoben.

@Override
public ColumnDescriptor asColumnDescriptor(PrintSettings settings, UniqueNamer collector) {
return ColumnDescriptor.builder()
.label(defaultColumnName(settings))
Copy link
Collaborator

Choose a reason for hiding this comment

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

So sollte hier passen

Suggested change
.label(defaultColumnName(settings))
.label(collector.getUniqueName(this))

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ich hab hier mal aufgeräumt und asColumnDescriptor final gemacht,das war ziemliches chaos aber alles im Grunde die gleiche impl

@awildturtok awildturtok force-pushed the feature/decouple-printing-from-ResultTyoe branch from 7f23383 to 8b2ee30 Compare August 20, 2024 11:40
@awildturtok awildturtok requested a review from thoniTUB August 21, 2024 14:46
Copy link
Collaborator

@thoniTUB thoniTUB left a comment

Choose a reason for hiding this comment

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

Bitte noch über die offenen Konversationen rüberschauen. Da sind noch kleine Todos

@awildturtok awildturtok requested a review from thoniTUB August 22, 2024 08:22
@awildturtok awildturtok merged commit 0854f74 into develop Aug 22, 2024
6 checks passed
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