-
Notifications
You must be signed in to change notification settings - Fork 94
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
Replace prettytable-rs with comfy-table #2413
Conversation
✅ Docs preview has no changesThe preview was not built because there were no changes. Build ID: fb4078d0e5b2347794871e1d |
76ff8f4
to
1443213
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.
lgtm! though, what was the check_workflow.rs file? just... empty? was it used for anything?
1443213
to
4b2aee3
Compare
As far as I could tell, it was an empty module not used anywhere, so just some code cleanup there. |
# [0.28.0] - 2025-03-12 ## 🚀 Features - **Default to Apollo Router 2.x for `rover dev` - @pubmodmatt PR #2433** The default version of Apollo Router used by `rover dev` is now 2.x instead of 1.x. The default can be overridden by setting `APOLLO_ROVER_DEV_ROUTER_VERSION`, for example `APOLLO_ROVER_DEV_ROUTER_VERSION=1.61.0`. - **Implement supergraph config schema command - @jonathanrainer PR #2418** Adds a new `rover supergraph config schema` command to output the JSONSchema for `supergraph.yaml`. This can be used to configure editor support for the file. ## 🐛 Fixes - **Add specific CompositionError handling - @jonathanrainer PR #2422** - **Pass log_level through to Router binary - @monkpow PR #2426** - **Fix formatting of table output by `rover config whoami` - @pubmodmatt PR #2413** - **Better error on missing environment variable - @pubmodmatt PR #2442** ## 🛠 Maintenance - **Add Apollo Router 2.x dependency to renovate - @pubmodmatt PR #2430** - **Fix CI post update to Rustup 1.28 - @jonathanrainer PR #2431** - **Replace backoff with backon - @pubmodmatt PR #2437** - **Add exemption for unmaintained humantime dependency - @pubmodmatt PR #2440** ## 📚 Documentation - **Add docs on using the native GitHub actions - @lleadbet PR #2419** - **Add changelog entry for new behaviour w.r.t subgraph_url - @jonathanrainer PR #2420** - **GitHub CI/CD - @shorgi PR #2427**
Replace the
prettytable-rs
dependency withcomfy-table
.Motivation
The table output by
rover config whoami
was misalgined, due to this issue inprettytable-rs
:As pointed out in the comparison with other libraries in the
comfy-table
docs, it appears thatprettytable-rs
may be abandoned. The fix for the above issue has had an open PR for several months, but it has not been merged and released.comfy-table
appears to be actively developed, and had a new version release 12 days ago.Differences
Dropping in
comfy-table
is almost seamless. There are a few very slight differences in the output, in addition to fixing the above alignment issue:prettytable-rs
, but they do work withcomfy-table
comfy-table
uses a double line between the header row and the next row, more clearly delineating the headerscomfy-table
preset uses dashed lines inside the table, and solid lines for the table border, provding a nice visual separation.prettytable-rs
used solid lines everywhere.Comparison
Note that the examples below do not show bold fonts or colors that would appear in the terminal.
rover config whoami
prettytable-rs
comfy-table
rover docs list
prettytable-rs
comfy-table
rover subgraph list
prettytable-rs
comfy-table