Comments (6)
Hi @sykesm - do you have a script and fixtures to reproduce? This is going into CLI icebox, and it'll be easier to get to if we can get it repro'd quickly.
cc: @scottruitt
from cli.
@thansmann and @sykesm --
@tedsuo and I reviewed it. It's a legit issue, but one we probably won't tackle immediately. I'll prioritize this in the backlog.
Scott
from cli.
It is undesirable to make unnecessary HTTP requests to product a single set of data. That truth should be self-evident.
Unfortunately, due to the nature of the CC API, we made the explicit choice to make requests for resources with inline-relations-depth=1
in all cases. It's a little complicated, but if you're interested we could explain it in more detail.
The short answer is that doing this helps us know (at compile time) that we're using the API correctly. A longer answer would probably address that this is a hack but that it's a useful hack that makes our code (and api) less complex and thus easier to reason about.
Feel free to continue commenting on this issue if you'd like to discuss it. It is unlikely that we would drastically change our internal API model (barring some features or new API that drove out these changes), so we'd like to consider this as closed.
from cli.
@XenoPhex the next time I'm in SF (end of the month) I'd welcome a discussion around inline-relations-depth=n. There are a number of scenarios where it makes a great deal of sense - even here. That said, it doesn't make make a lot of sense to me to get the data a second time when when you know you got it the first time.
from cli.
from cli.
OMG! I won! :)
from cli.
Related Issues (20)
- Trailing Slash in api url leads to failure in cf curl
- unbind-security-group is not working as intended HOT 1
- Cannot install CF CLI error: gpg: no valid OpenPGP data found HOT 2
- Don't fetch unneeded pages HOT 4
- CF CLI binaries unavailable HOT 22
- Cli fails to list repo plugins HOT 6
- cf share-service fails with exit code 1 if it is already shared HOT 2
- cf tasks should print the reason for FAILED tasks HOT 1
- Unmapping route: Something unexpected happened. HOT 3
- Typo in the V8 CLI Installation Guide wiki HOT 1
- Display service offerings metadata
- cf cli slow in large space due to page size of 50 when calling CF API
- 'cf a' should print out available information even if an app process was not found HOT 1
- service key as true JSON
- Publish json schema for cf manifest as to enable IDE coding assist features (completion, syntax validation, inline doc) HOT 1
- Update the cli libraries HOT 1
- Using `cf create-service` with v8 CLI does not consider current targeted space HOT 2
- Output CPU Entitlement metrics rather than the old CPU metric HOT 8
- cf restart [APP] --strategy rolling - getting timeout in spite CF_STARTUP_TIMEOUT env variable set to 15 minutes HOT 1
- `{{` in App Environment Variable values break the `cf env` command HOT 2
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 cli.