-
Notifications
You must be signed in to change notification settings - Fork 43
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
refactor(web): bring back zFCP support (new HTTP / JSON API, queries, and TypeScript) #1570
Merged
Merged
Changes from 1 commit
Commits
Show all changes
121 commits
Select commit
Hold shift + click to select a range
9e8cc77
start with new web API for DASD
jreidinger daf6124
[WIP] Try to add a supported check to DASD API
teclator e05a7cc
try to have working dasd#supported
jreidinger 5e246d1
Replaced DASD is supported check
teclator c772472
[WIP] Start adapting DASDPage
teclator 7e4b34d
Temporal fix for showing dasds
teclator d866bd8
adapt ids
jreidinger 8788502
Merge branch 'http-dasd' into web-dasd
teclator 08edd00
Start moving DASD pages to Typescript
teclator e796206
add dasd probe
jreidinger 2b40f73
add more api and queries for dasd
jreidinger 455fa66
add format api call
jreidinger fa7ac90
fix sort types
jreidinger b2d7f6c
add backspace icon
jreidinger 6251f72
Move DASD actions to queries
teclator 6e8e581
add jobs api
jreidinger d4be0c8
Merge remote-tracking branch 'origin/http-dasd' into web-dasd
jreidinger fc3497f
Moved DASD filters to queries
teclator 41251bf
Move DASD selection to queries
teclator b7ab21c
Merge remote-tracking branch 'origin/http-dasd' into web-dasd
jreidinger 897bbf4
first attempt to implement proper format with storage jobs
jreidinger fc8f79c
optimize dasd devices query to not use invalidate
jreidinger f7530fd
Merge branch 'http-dasd' into web-dasd
teclator 87e4e13
Fix jobs url
teclator fa3eae7
Getting rid of the DASD initial state
teclator e2da06a
Use the DASD id for notifing format job changes
teclator 8991d01
Small fixes for the DASD Format progress dialog
teclator d67205d
Fix jobs summary test
teclator d7033e5
Merge remote-tracking branch 'origin/master' into web-dasd
jreidinger 94f92fa
add non-working test for component with mutating queries
jreidinger 23405eb
add test for dasd format progress together with fix it reveals
jreidinger 5dba41c
transform DASDFormatProgress component to typescript
jreidinger 40baceb
Update web/src/api/dasd.ts
jreidinger 4e8e129
Removing dasd client
teclator eeba75f
Removing leftovers
teclator ad92d01
use connsistent name in API
jreidinger 6b97d1d
Remove not needed code from DASD Page
teclator c13bfbf
Merge branch 'master' into web-dasd
teclator debcfb7
Merge remote-tracking branch 'origin/web-dasd' into dasd_failing_test
jreidinger 1a3d485
fix dasd table test
jreidinger a6cb882
Improve DASDFormat progress dialog
teclator df7ca94
Notify id in Jobs events
teclator 7ddbba5
Handle JobAdded event
teclator f585806
Remove running jobs when finish
teclator b028a3b
Fix DASDFormatProgress unit test
teclator 9fd4544
Removed leftover Deviceinfo
teclator dbdf722
Changes based on CR
teclator 8bbf57b
Changes based on code review
teclator d0650ac
Implement http backend for zfcp
jreidinger c4f6472
format rust
jreidinger 918a5e3
Use mutations instead of API direct calls
teclator a7a027d
fix autoapi
jreidinger 4405715
More changes based on code review
teclator 6d140be
Replace dasd filter queries by component state
teclator 8fc01b9
Replace dasd selection queries by component state
teclator 50e76ad
Do not set any info about formatting.
teclator a75354f
Added DASD route only if supported
teclator 669f102
Removed selected DASD leftover queries
teclator f296c55
add method to get disks and add id to zfcp controller to be able to c…
jreidinger 8ebc3a7
add zFCP types and api for web
jreidinger 76d295b
Use only one mutation for modifying DASD state
teclator a705ac6
Do not modify existent cache but return new object
teclator d0bf495
Another inmutability fix
teclator 211df16
add initial zfcp queries
jreidinger 3c9c319
Merge branch 'master' into web-dasd
teclator 1c9dfdd
Added changelog
teclator 9b96a93
Apply suggestions from CR
teclator 5188009
Merge remote-tracking branch 'origin/web-dasd' into zfcp_adapt
jreidinger 77d744e
add route to zfcp page
jreidinger a9cc9d5
show properly zfcp link
jreidinger 8b908b0
Bring back ZFCP to the devices tech menu and adapted tests
teclator f87cd51
Merge branch 'master' into zfcp_adapt
teclator e2141f6
initial WIP for zfcp web UI
jreidinger b62e58c
split ZFCP controllers table
jreidinger a28c9bc
add config call to zfcp
jreidinger 4392c08
change backend to provide more info about controllers to avoid doing …
jreidinger 2e63383
fix typo
jreidinger 88ac2be
Fix indentation
teclator e888d0b
Fix ZFCP controller path
teclator 2a2fa15
Fixed indentation and run prettier
teclator 82303ee
Moving to typescript
teclator b9adfca
move getting id from path to own method with test
jreidinger bc543b3
do not use client and manager in disk popup in zfcp page
jreidinger 6c41ec7
change naming for acronyms in ZFCP and switch to hooks
jreidinger f2d0f15
fix cases to display properly zfcp
jreidinger fac2422
fix type for luns map
jreidinger 31abfce
Added close action and removed leftovers
teclator 6badb0b
add initial test for zfcp disk table
jreidinger 6c4123f
add initial test for controllers
jreidinger 1f8cfa5
Return json answer in activation calls
teclator c6ffc79
Fixed activation result
teclator d9fec02
Navigate to target-device when close
teclator e5ddfb8
fix zfcp page test
jreidinger 2435305
Close disk activation popup when success
teclator 08a1b89
Moved ZFCP Disk activation form to a page
teclator cf25379
Fix ZFCPDiskForm unit tests
teclator 0e865bd
Modify ZFCP activation page header and run prettier
teclator b373be2
Not return queries when subscribing to changes
teclator 1649ef2
Merge branch 'master' into zfcp_adapt
dgdavid c0be7e0
fix(web): adapt zFCP pages
dgdavid 1f95321
refactor(web): migrate core/ServerError to TypeScript
dgdavid 9ddc9ed
fix(web): improve the ZFCPage internals
dgdavid 8b3b28e
fix(web): better naming
dgdavid 352444a
Change Back button and rename zFCP and DASD functions
teclator bfacdb0
Choose a better action for navigating to selection device
teclator 9efa66e
Change zfcp queries as suggested
teclator f0bd5f9
zFCP queries and api changes based on CR
teclator 89efc50
Move zfcp components under its own folder
teclator cbb7f9a
Move dasd components under its own folder
teclator 1ae7849
Merge branch 'master' into zfcp_adapt
teclator 268d0b9
prettier fixes
teclator 5caebea
Do not export not needed components
teclator faa5e8b
Added changelog
teclator 65a0903
Ensure changes are applied even if activating.
teclator cd11f27
Update rust/agama-lib/src/storage/client/zfcp.rs
teclator 92b51ab
Use already defined method for obtaining the id from path
teclator d5720ec
Move queries and api for dasd and zfcp under storage dir
teclator 7af24f8
Try to simplify zfcp and dasd changes queries
teclator 8268a2f
Fix test
teclator 8b1af6b
Move ZFCPOptions to the web server
teclator 19a242c
Merge branch 'master' into zfcp_adapt
teclator File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
BTW, maybe I miss something at some point but the only suggestion I see is about the naming: #1570 (review)
But not about the full structure. I've no strong opinion about writing them as function or object. But I though we were writing them always as function for consistence since they could receive args for building the query. As far as I can see, @imobachgs has wrote some as function and some as object in the storage part too. We can go ahead with such approach if you guys think it is better, but we should be consistent in all places.
PLEASE, do not take this comment as a suggestion for continue sending changes against this PR. Whatever we decide to choose should be addressed in a change unifying all the queries across the code.
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.
This change was based on this another suggestion #1570 (comment), in that case objects were used, so, I also does not have an strong opinion and agree on unifying.
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.
Ok, I see.
As said, let's go ahead and talk about it later, once we finish the queries implementation.
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.
Well, the point of my comment was not the
queryKey
thingie, but the overall approach of the whole function. I added another note about it (see #1570 (comment)).