-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add repository traffic preview #1457
Add repository traffic preview #1457
Conversation
Maybe someone has a better naming for |
024ce12
to
23f22e2
Compare
bce79eb
to
c9a1302
Compare
c9a1302
to
61f6a67
Compare
@ryangribble, what about integration tests for this feature. The only thing we can test is that the result is not null 😑. And of course the result count is 0.. Should i do that? |
I guess integration tests still prove everything is wired up correctly, even if there aren't any meaningful stats... I take it we can't point the calls at an existing repository due to permissions? |
Yeap, you need to have push access. |
Hi @ryangribble, is this ready for 🚢? |
Hi @maddin2016 Do you think you could add some integration tests then flag them as |
Hey @maddin2016 Thanks for adding the tests - lucky we did because there was actually an issue with timestamps! 😀 I pulled everything down and ran through it, and these are the things I changed:
As I was working through things I ended up making local fixes anyhow, so I've pushed a commit that addresses these already if you want to cherry pick it in: TattsGroup@b145bb3 If you are interested in how we handle the timestamp thing, basically in other areas of the codebase we have a pattern already, where we add a [Parameter(Key = "ignoreThisField")]
public DateTimeOffset Timestamp
{
get { return TimestampAsUtcEpochSeconds.FromUnixTime(); }
}
[Parameter(Key = "timestamp")]
public long TimestampAsUtcEpochSeconds { get; protected set; } Let me know what you think of my changes |
Hi @ryangribble, thanks for your review. I have read on the format of |
Remove GetAll naming of endpoints and add to PaginationTest exclusions Rename View and Clone classes to be more specific Add handling of TimeStamp fields being UtcUnix time Add integration tests for repositoryId methods
And the renaming of the repsitory id's i have forgotten, because i already did this in another PR 😅 |
Many thanks @ryangribble |
fix #1447
Implement client for the new repository traffic api.