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
CCDM: deprecate server-side bootstrap related APIs #6517
Conversation
c80b2fa
to
cda6f23
Compare
* @author Vaadin Ltd | ||
* @since 1.0 | ||
*/ | ||
@FunctionalInterface | ||
@Deprecated | ||
public interface BootstrapListener extends EventListener, Serializable { |
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.
*/ | ||
@Deprecated | ||
public void modifyBootstrapPage(BootstrapPageResponse response) { |
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.
* @author Vaadin Ltd | ||
* @since 1.0 | ||
*/ | ||
@Deprecated | ||
public class BootstrapPageResponse { |
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.
cda6f23
to
6d298ec
Compare
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.
Reviewed 3 of 3 files at r1.
Reviewable status: 3 unresolved discussions, 0 of 1 LGTMs obtained (waiting on @qtdzz)
a discussion (no related file):
BTW Not sure if this is relevant, but I find a few usages of BootstrapListener
around, e. g., ServiceInitEvent#addBootstrapListener
and so on. I guess this is kind of deprecated automatically, no need for annotation?
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.
Reviewable status: 3 unresolved discussions, 0 of 1 LGTMs obtained (waiting on @platosha and @qtdzz)
a discussion (no related file):
Previously, platosha (Anton Platonov) wrote…
BTW Not sure if this is relevant, but I find a few usages of
BootstrapListener
around, e. g.,ServiceInitEvent#addBootstrapListener
and so on. I guess this is kind of deprecated automatically, no need for annotation?
Good catch! I actually missed them. I added the annotation and reword the message to be more descriptive.
*/ | ||
@Deprecated | ||
default Stream<BootstrapListener> getBootstrapListeners( |
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.
*/ | ||
@Deprecated | ||
public void addBootstrapListener(BootstrapListener bootstrapListener) { |
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.
*/ | ||
@Deprecated | ||
public Stream<BootstrapListener> getAddedBootstrapListeners() { |
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.
SonarQube analysis reported 10 issues Watch the comments in this conversation to review them. 4 extra issuesNote: The following issues were found on lines that were not modified in the pull request. Because these issues can't be reported as line comments, they are summarized 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.
Reviewed 5 of 5 files at r3.
Reviewable status: 6 unresolved discussions, 1 of 1 LGTMs obtained (waiting on @qtdzz)
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.
Dismissed @vaadin-bot from 6 discussions.
Reviewable status: complete! all discussions resolved, 1 of 1 LGTMs obtained
Fixes #6484
This PR deprecates
BootstrapListener
related APIs in favor ofClientIndexBootstrapListener
.For other APIs which were used to modify/add content to the bootstrap page (e.g.
@PWA
,PageConfigurator
,@Inline
,....) need to be considered separately.This change is