8000 chore(matchExpressions): revert #625 rename target.isAgent match expression to target.agent to fit current nomenclature by mwangggg · Pull Request #632 · cryostatio/cryostat · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

chore(matchExpressions): revert #625 rename target.isAgent match expression to target.agent to fit current nomenclature #632

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

Merged
merged 2 commits into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions schema/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ type RuntimeMetrics {

type Target {
activeRecordings(filter: ActiveRecordingsFilterInput): ActiveRecordings
agent: Boolean!
alias: String!
annotations: Annotations!
archivedRecordings(filter: ArchivedRecordingsFilterInput): ArchivedRecordings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ private static record SimplifiedTarget(

static SimplifiedTarget from(Target target) {
return new SimplifiedTarget(
target.agent(),
target.isAgent(),
target.connectUrl.toString(),
target.alias,
target.jvmId,
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/cryostat/targets/Target.java
5D57
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public class Target extends PanacheEntity {
public DiscoveryNode discoveryNode;

@JsonProperty(access = JsonProperty.Access.READ_ONLY)
public boolean agent() {
public boolean isAgent() {
return AgentConnection.isAgentConnection(connectUrl);
}

Expand Down
Loading
0