Skip to content

Comments

Adapt storage web client#441

Merged
joseivanlopez merged 6 commits intoagama-project:masterfrom
joseivanlopez:storage-client
Mar 3, 2023
Merged

Adapt storage web client#441
joseivanlopez merged 6 commits intoagama-project:masterfrom
joseivanlopez:storage-client

Conversation

@joseivanlopez
Copy link
Contributor

@joseivanlopez joseivanlopez commented Feb 28, 2023

Problem

The D-Bus API of the storage service was modified and extended to support iSCSI. The storage D-Bus client used by the web client needs to be adapted in order to provide all the required features to build an iSCSI UI.

Solution

Adapt the storage D-Bus client to all the changes in the D-Bus API. Moreover, this PR extends the storage D-Bus API to provide some missing features (e.g., iBFT property).

Testing

  • Added unit tests
  • Tested manually

@joseivanlopez joseivanlopez force-pushed the storage-client branch 3 times, most recently from baa555f to 8bfadc2 Compare March 1, 2023 13:37
@coveralls
Copy link

coveralls commented Mar 1, 2023

Coverage Status

Coverage: 79.797% (+0.1%) from 79.671% when pulling cb902b5 on joseivanlopez:storage-client into 652cb97 on yast:master.

@joseivanlopez joseivanlopez force-pushed the storage-client branch 2 times, most recently from 19a6d34 to 0d84975 Compare March 2, 2023 01:09
@joseivanlopez joseivanlopez marked this pull request as ready for review March 2, 2023 09:24
@joseivanlopez joseivanlopez force-pushed the storage-client branch 2 times, most recently from e9d4187 to 21024c0 Compare March 3, 2023 01:08
* @returns {object}
*/
class StorageBaseClient {
const removeUndefinedCockpitProperties = (cockpitObject) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like a generic function that might be useful in other parts. Of course, it can live here by now, but it will be reusable in the future (when we add support for more iSCSI-like APIs). And when we move that function, we could extend it to work on nested objects.

Copy link
Contributor

@dgdavid dgdavid left a comment

Choose a reason for hiding this comment

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

What about changes files?

@imobachgs
Copy link
Contributor

What about changes files?

It is part of the iSCSI support, so I do not think it is needed yet.

Copy link
Contributor

@dgdavid dgdavid left a comment

Choose a reason for hiding this comment

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

Thanks Iván!

@joseivanlopez joseivanlopez merged commit 06ba269 into agama-project:master Mar 3, 2023
@joseivanlopez joseivanlopez mentioned this pull request Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants