Commit Graph

3567 Commits

Author SHA1 Message Date
Michael Hudson-Doyle c0f0e3caaa add subiquity-server to snap 2020-09-23 13:29:01 +12:00
Michael Hudson-Doyle 87d193b0ec
Merge pull request #838 from mwhudson/middleware
handle server errors nicely
2020-09-23 13:28:00 +12:00
Michael Hudson-Doyle 6647d88c14 generate the error report for a request failure in the server
this requires a bit of plumbing for the client to be able to show an error report
that has just been created in another process
2020-09-23 11:02:02 +12:00
Michael Hudson-Doyle 3458227e94 have clicking restart in an error view restart the server too 2020-09-23 11:01:56 +12:00
Michael Hudson-Doyle 913a5262a2 create and show an error report when a server request fails 2020-09-23 10:48:39 +12:00
Michael Hudson-Doyle 9ce19db20c add a dry-run only api method that crashes and a key to call it 2020-09-23 10:47:35 +12:00
Michael Hudson-Doyle eea6bb0e27
Merge pull request #837 from mwhudson/serialize-to_json
make serialization api a touch easier to use
2020-09-23 10:47:20 +12:00
Michael Hudson-Doyle 25b9cf4c99 make serialization api a touch easier to use 2020-09-23 10:30:05 +12:00
Michael Hudson-Doyle 0e4d2ea7b8
Merge pull request #836 from mwhudson/minimal-server
add a minimal server process
2020-09-22 14:52:30 +12:00
Michael Hudson-Doyle edc43ff811 add a minimal server process
run it automatically in dry-run mode
2020-09-22 14:43:26 +12:00
Michael Hudson-Doyle 921bcfee70
Merge pull request #835 from mwhudson/refresh-view-changes
make refresh view/controller interface more client/server friendly
2020-09-22 14:42:30 +12:00
Michael Hudson-Doyle 54793283ef make refresh view/controller interface more client/server friendly
maybe. a bit.
2020-09-22 12:09:17 +12:00
Michael Hudson-Doyle ee764da84d
Merge pull request #834 from mwhudson/error-report-ref
add a type to act as a sort of serializable "handle" for an error report
2020-09-22 10:41:11 +12:00
Michael Hudson-Doyle 94de120d16 add a type to act as a sort of serializable "handle" for an error report 2020-09-21 22:25:58 +12:00
Michael Hudson-Doyle 58d1f2f385
Merge pull request #833 from mwhudson/zdev-view-changes
make zdev view/controller interface more client/server friendly
2020-09-21 21:32:36 +12:00
Michael Hudson-Doyle 7d02ee17f6 make zdev view/controller interface more client/server friendly 2020-09-21 21:04:14 +12:00
Michael Hudson-Doyle d92c8e862a
Merge pull request #832 from mwhudson/keyboard-view-changes
make keyboard view/controller interface more client/server friendly
2020-09-21 21:02:35 +12:00
Michael Hudson-Doyle 1ac81c41b5
Merge pull request #831 from mwhudson/welcome-view-changes
make welcome view/controller interface more client/server friendly
2020-09-21 21:01:00 +12:00
Michael Hudson-Doyle c204b4e214
Merge pull request #830 from mwhudson/installprogress-view-changes
tidy up interface between progress view and controller
2020-09-21 21:00:03 +12:00
Michael Hudson-Doyle 308bbd1042 update POTFILES.in 2020-09-21 16:07:09 +12:00
Michael Hudson-Doyle 70fc2e64cd make keyboard view/controller interface more client/server friendly 2020-09-21 14:56:47 +12:00
Michael Hudson-Doyle cfa56ff821 make welcome view/controller interface more client/server friendly 2020-09-21 14:28:13 +12:00
Michael Hudson-Doyle a8a56e908f tidy up interface between progress view and controller 2020-09-21 14:13:07 +12:00
Michael Hudson-Doyle bc6c66efbb give contexts an id and have progressview track them by id not identity 2020-09-21 14:01:40 +12:00
Michael Hudson-Doyle 219360d12d fixes for how install failures are presented
some of these have been around for a while :/
2020-09-21 14:01:23 +12:00
Michael Hudson-Doyle 8f8a87ad1c
Merge pull request #829 from mwhudson/simpler-snaplist-types
make interface between snaplist view and controller client-server friendly
2020-09-21 12:19:13 +12:00
Michael Hudson-Doyle 0a8c6b506e small refactor 2020-09-21 11:39:34 +12:00
Michael Hudson-Doyle e43e3cca14 make the interface between snaplist view and controller client-server friendly 2020-09-21 11:21:42 +12:00
Michael Hudson-Doyle 22fbfdcbdd
Merge pull request #827 from mwhudson/asyncify-make_ui
allow make_ui to be async
2020-09-21 10:42:03 +12:00
Michael Hudson-Doyle 10fbd73d9c
Merge pull request #828 from mwhudson/simple-view-types
convert proxy, mirror, identity, ssh views to only refer to simple types
2020-09-19 23:06:34 +12:00
Michael Hudson-Doyle aaa0b9a48d stop proxy and mirror views referring directly to model
nearly trivial, this one
2020-09-18 22:39:52 +12:00
Michael Hudson-Doyle 084b3c2396 make sshview refer to a simple type 2020-09-18 22:37:35 +12:00
Michael Hudson-Doyle d0667e7f12 make identityview refer to a simple type 2020-09-18 22:25:24 +12:00
Michael Hudson-Doyle 7545b9108d
Merge pull request #826 from mwhudson/separate-answers-handling
change controller api to return a view, rather than setting it
2020-09-18 22:10:14 +12:00
Michael Hudson-Doyle 56441c6f97 small tidies 2020-09-18 22:01:36 +12:00
Michael Hudson-Doyle 9b414df0eb add a helper to wait and show a dialog if needed
use this in snaplist view. cancellation with asyncio is mindbending!
2020-09-18 21:51:14 +12:00
Michael Hudson-Doyle a7bcc7faf0 add a way to wait for something with notification after 0.1s
use this for moving between screens, removing some crummy code from subquity/core.py
2020-09-18 21:18:27 +12:00
Michael Hudson-Doyle 6c258d6da4 allow make_ui to be a coroutine 2020-09-18 11:52:19 +12:00
Michael Hudson-Doyle f0082c2068 change controller api to return a view, rather than setting it 2020-09-18 11:44:00 +12:00
Michael Hudson-Doyle eb5dba579e handle answers in a separate method 2020-09-18 11:18:08 +12:00
Michael Hudson-Doyle 1881f34018
Merge pull request #824 from mwhudson/no-new-event-loops
refactor startup a bit
2020-09-18 10:45:53 +12:00
Michael Hudson-Doyle e786461b86 make the api for listening to the journal a bit nicer 2020-09-18 09:55:51 +12:00
Michael Hudson-Doyle aa3bce4414 do not run the urwid loop at all when not interactive 2020-09-18 09:54:50 +12:00
Michael Hudson-Doyle 45009e3a12 refactor startup a little
the point of this is to have the event loop running while loading
autoinstall commands, which means we do not have to start and stop the
event loop inside load_autoinstall_config if there are early-commands to
run.
2020-09-18 09:54:50 +12:00
Michael Hudson-Doyle 88821f745c
Merge pull request #822 from mwhudson/network-simpler-types
make network view use a plain-old-data view of a nic
2020-09-18 09:54:13 +12:00
Michael Hudson-Doyle 04e5cf95b0
Merge pull request #823 from mwhudson/add-api
add api definition and support code for client server split
2020-09-18 09:53:44 +12:00
Michael Hudson-Doyle 0ba0cdc56e
Merge pull request #825 from mwhudson/restore-KeyCodesFilter
restore KeyCodesFilter, somehow dropped during refactoring
2020-09-17 11:41:04 +12:00
Michael Hudson-Doyle 19178979fc restore KeyCodesFilter, somehow dropped during refactoring 2020-09-17 11:18:52 +12:00
Michael Hudson-Doyle 1091ced495 address review comments 2020-09-16 09:47:03 +12:00
Michael Hudson-Doyle c7e9445ad1 add subiquity.common.api
This somewhat overengineered code allows you to define an API in a
sort-of DSL and then automatically make a client, and implement it bit
by bit server side.
2020-09-11 16:56:30 +12:00