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

Expose agent persistence for server users #249

Merged
merged 18 commits into from
Oct 5, 2020
Merged

Conversation

joshmeek
Copy link
Contributor

@joshmeek joshmeek commented Sep 24, 2020

PR Checklist:

  • add a short description of what's changed to the top of the CHANGELOG.md
  • add/update tests (or don't, for reasons explained below)

Describe this PR

This PR exposes the agents tile and page for users of server. It also improves some of the information displayed on the cards in the agent page. Submitted flow runs will now display the ID of the agent that submitted them and links back to the agent page.

The agents page will now function much better after PrefectHQ/server#95 is released.

@zhen0 @znicholasbrown Do you usually include screenshots in PRs? I can attach some if needed

zhen0
zhen0 previously requested changes Sep 24, 2020
Copy link
Member

@zhen0 zhen0 left a comment

Choose a reason for hiding this comment

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

Thanks @joshmeek! Very cool to have a new member of the UI team 😉 and it'll be great to have agents in server.

A few suggested changes but my main concern is that agent_id seems to be breaking the Flow Run page in Cloud (tried in dev and staging).

src/components/Agents/Agents.vue Show resolved Hide resolved
src/pages/Dashboard/Dashboard.vue Outdated Show resolved Hide resolved
src/graphql/Agent/delete-agent.gql Outdated Show resolved Hide resolved
src/graphql/FlowRun/flow-run.js Show resolved Hide resolved
package-lock.json Outdated Show resolved Hide resolved
@cicdw cicdw closed this Sep 24, 2020
@joshmeek joshmeek reopened this Sep 24, 2020
Copy link
Member

@zhen0 zhen0 left a comment

Choose a reason for hiding this comment

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

One small suggestion then looks good to me @joshmeek. I'll let @znicholasbrown do a final review.

src/components/Agents/AgentCard.vue Outdated Show resolved Hide resolved
@zhen0 zhen0 dismissed their stale review September 28, 2020 19:20

Dismissing as I re-reviewed.

@znicholasbrown
Copy link
Contributor

znicholasbrown commented Sep 28, 2020

Hm, I'm still unable to visit flow run pages with this, getting:

"field "agent_id" not found in type: 'flow_run'"

Getting the same with both Server and Cloud (prod). Should I be testing this in a different environment? It looks like agent stuff was released with Server 4 days ago.

@cicdw
Copy link
Member

cicdw commented Sep 28, 2020

@znicholasbrown that was a minor bug, I'm about to release the fix in one minute.

Copy link
Contributor

@znicholasbrown znicholasbrown left a comment

Choose a reason for hiding this comment

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

LGTM @joshmeek 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants