Comments (9)
General
- as we talked about on irc, hopefully there wouldn't be any long-running operations, but if there were we'd tackle that issue when it arose
- an array is returned with the successfully created (or destroyed) things, and then it's up to the client.
- correct
Maybe @mulkieran or @trgill can answer the other parts? I don't have a ready answer to these...
from stratis-docs.
My answer to 3.0 is that I doubt that it matters much either way.
from stratis-docs.
My answer to 1.1.2. I think you're talking about the situation of our redundancy argument to create_pool
. We use a tuple in that case, where the first item is a boolean and the second is an item of the correct type.
from stratis-docs.
My answer to 1.1.2. I think you're talking about the situation of our redundancy argument to create_pool. We use a tuple in that case, where the first item is a boolean and the second is an item of the correct type.
I understand what you are doing, my question is that when the first value of the tuple is False, the second parameter doesn't matter, but from a dbus API usage it must have a value of the correct type.
Any suggested value to represent that which is to be ignored? Yes the value doesn't matter, but for example the accepted dbus convention is that to pass an empty object path one uses a '/' for the object path as you cannot pass an empty string for an object path.
This is one reason I like just passing a hashmap for optional arguments. The additional benefit is you can extend an existing API call without breaking API compatibility or introducing a new method call. Some would argue this is an escape hatch of sorts, but it works :-)
from stratis-docs.
My answer to 3.0 is that I doubt that it matters much either way.
When using an API I think it's nice to have consistency, (eg. result code always in element 0), bikeshedding would be easy here, so I'll defer raising this as an issue if no one else feels strongly about it.
from stratis-docs.
My answer to 3.0 is that I doubt that it matters much either way.
When using an API I think it's nice to have consistency, (eg. result code always in element 0), bikeshedding would be easy here, so I'll defer raising this as an issue if no one else feels strongly about it.
I think we have an equal amount of consistency either way. But it's true that our current consistency is more mathematically sophisticated. I think it hasn't bothered us, because we use tuples to extract the values in the Python code. If you were to implement a more mathematically unsophisticated consistency, I would not object.
from stratis-docs.
My answer to 1.1.2. I think you're talking about the situation of our redundancy argument to create_pool. We use a tuple in that case, where the first item is a boolean and the second is an item of the correct type.
I understand what you are doing, my question is that when the first value of the tuple is False, the second parameter doesn't matter, but from a dbus API usage it must have a value of the correct type.
Any suggested value to represent that which is to be ignored? Yes the value doesn't matter, but for example the accepted dbus convention is that to pass an empty object path one uses a '/' for the object path as you cannot pass an empty string for an object path.
This is one reason I like just passing a hashmap for optional arguments. The additional benefit is you can extend an existing API call without breaking API compatibility or introducing a new method call. Some would argue this is an escape hatch of sorts, but it works :-)
I think defaults are just really easy to come up with, so that wasn't a worry. We have to come up with them in our stratisd code and we do not fail.
from stratis-docs.
@tasleson any outstanding issues or questions left, or can we close this issue?
from stratis-docs.
I've voiced my concerns with the existing API and that we are making the decision to ignore the advice of others on best practices. I said my piece.
from stratis-docs.
Related Issues (20)
- Blog post on upcoming 3.0 version of stratisd
- Stratis how-to/walk-through - information review request HOT 1
- Blog post for next stratisd release
- Document external users of Stratis on Stratis website HOT 5
- Stop documenting particular methods in the D-Bus design doc HOT 1
- Intro Request on landing page HOT 7
- Update how-to to reflect the actual state of affairs regarding boot from root HOT 2
- Blog post about per-pool locking
- Blog post about improvements to the thinpool block layer management
- There seem to be doc xml tags which we might prefer to use to annotate the XML data that we publish HOT 2
- Define "cap device" HOT 1
- Stratis 3.1.0 release notes HOT 1
- Post Introspection Data for r2 D-Bus API
- Release notes for Stratis 3.3.0 HOT 1
- Fix up ci so that it no longer tries to install zola from Fedora
- Cache a built version of zola for CI HOT 3
- Add additional documentation for metadata re-allocation strategy
- 'stratis daemon redundancy' no longer works, but still shows on howto page
- GrowPhysicalSize documentation missing from posted introspection data
- Blog post regarding metadata changes for stratisd v 3.7.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stratis-docs.