jcabi / jcabi/jcabi-github

Caching layer

Open
#1,155 3 comments 2 reactions 0 assignees View on GitHub
bug DEV enhancement help wanted
Dominant language
Java
Stars
307
Forks
144
Avg merge
1d 22h
Merged PRs (30d)
14

Description

I would expect that calling something like:

``` java
User privateUser = github.users().get(name);
Smart user = new Smart(privateUser);
user.login();
user.avatarUrl().toString();
user.type();
```

will call the user resource once, and then extract stored data when login(), avatarUrl(), and type() are called. Seems like this is not the case, and new API request is performed for every method call. Am I missing something here? Is this the intended behaviour?

It seems like the only option to get all the user data in a single request, and single request is the only choice for me, is to get the raw JSON, and then extract everything from it, bypassing ale the nice getters User.Smart have.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.