Open javier-godoy opened 4 weeks ago
The recent updates across several files in the project primarily focus on enhancing UI handling within the ConcurrentStreamResourceWriter
and GridExporter
classes. This includes importing the UI
class, adding methods to retrieve the UI, and ensuring that UI attachment checks are performed during stream processing. These changes aim to improve the robustness and reliability of UI interactions within the grid exporter functionality.
Files | Change Summary |
---|---|
.../ConcurrentStreamResourceWriter.java |
Added imports for UI and Optional , introduced getUI() and getAttachedUI() methods, and modified accept method to include UI attachment check. |
.../GridExporter.java |
Added import for UI and introduced getUI() method to return the UI associated with the grid. |
.../ConfigurableConcurrentStreamResourceWriter.java |
Added import for UI , and introduced a private field ui along with its getter and setter. |
sequenceDiagram
participant Client
participant GridExporter
participant ConcurrentStreamResourceWriter
participant UI
Client->>GridExporter: Request Export
GridExporter->>UI: getUI()
UI-->>GridExporter: UI instance
GridExporter->>ConcurrentStreamResourceWriter: accept(OutputStream, VaadinSession)
ConcurrentStreamResourceWriter->>UI: getAttachedUI()
UI-->>ConcurrentStreamResourceWriter: Attached UI instance
ConcurrentStreamResourceWriter->>UI: Perform export operations
UI-->>ConcurrentStreamResourceWriter: Export complete
ConcurrentStreamResourceWriter-->>Client: Exported data
In the land of code where UIs thrive,
A rabbit hopped, making streams alive.
With grids to export and sessions to keep,
Ensuring attachments, no code to weep.
Now flows the data, smooth and bright,
Thanks to changes, all feels right.
🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code
@coderabbitai review
127
Summary by CodeRabbit