Skip to content

Conversation

@tverney
Copy link
Contributor

@tverney tverney commented Oct 9, 2024

Problem

We currently only support accessing the last code generated (by the Tree view). If you try open the diff view in past history, will thrown an error. This happens because when we click on past history Tree we actually send a "newer" uploadId and didn't keep track of all the past ones.

Screenshot 2024-10-09 at 11 07 58 AM

Solution

Cache those uploadIds based on codeGenerationId which can be easily accessible while clicking in past views.


License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

@github-actions
Copy link

github-actions bot commented Oct 9, 2024

This pull request implements a feature or fix, so it must include a changelog entry. See CONTRIBUTING.md#changelog for instructions.

@tverney tverney marked this pull request as ready for review October 9, 2024 15:08
@tverney tverney requested review from a team as code owners October 9, 2024 15:08
new AppToWebViewMessageDispatcher(new MessagePublisher<any>(new vscode.EventEmitter<any>()))
),
telemetry: new TelemetryHelper(),
uploadHistory: {},

Choose a reason for hiding this comment

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

nit: Consider adding a test where uploadHistory is populated and show we can access an element from it

Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry, used the wrong account here.

Copy link
Contributor Author

@tverney tverney Oct 9, 2024

Choose a reason for hiding this comment

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

Oh, I thought was somekind of automatic messaging. Thanks, yea, due the timeline I would say we can add those testing scenarios as a follow up PR

new AppToWebViewMessageDispatcher(new MessagePublisher<any>(new vscode.EventEmitter<any>()))
),
telemetry: new TelemetryHelper(),
uploadHistory: {},
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry, used the wrong account here.

…cb3-a9a2-dc5c5462e529.json

Co-authored-by: Justin M. Keyes <[email protected]>
@tverney tverney requested a review from justinmk3 October 9, 2024 21:49
@justinmk3 justinmk3 merged commit 78c448b into aws:master Oct 9, 2024
17 of 18 checks passed
@tverney tverney deleted the fix/cache-tree-history branch October 9, 2024 22:03
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.

4 participants