Commit Graph

51 Commits

Author SHA1 Message Date
Sean Killeen
57fe2ce193 Add repository topics support (#2246) 2021-02-25 10:40:25 -04:00
Jose de Jesus Medina
df77be29b1 Add license to repository search (#2258) 2020-10-06 09:50:40 -03:00
Jose de Jesus Medina
66a6781584 spellcheck round 2 (#2259) 2020-10-06 09:47:36 -03:00
Brendan Forster
5de3791626 ensure datetime offset is encoded correctly for search APIs (#2091)
* add failing integration test for timestamp

* make the test pass by encoding the value

* generalize this pattern for now

* update tests to reflect change in date formatting
2020-02-09 22:13:44 -04:00
Jose de Jesus Medina
fd6bca910c fix language with spaces giving wrong results (#2038) 2019-11-13 09:31:24 -04:00
Jose de Jesus Medina
90812951f4 add JupyterNotebook to Repository Search (#2032) 2019-10-21 20:02:33 -03:00
Brendan Forster
ce5ea64428 migrate to dotnet-format tool (#2016)
* migrate to new dotnet-format tool in build script (run on local build)
* reformat code
2019-09-24 11:34:50 -03:00
Brendan Forster
6433b9123e fix timezone offset handling (#1988)
* port tests to use DateTimeOffset

* drop the whitespace when emitting DateTimeOffset values

* tidy up stale regions
2019-09-16 10:27:27 -03:00
Ben McMorran
70fe726954 Correctly support language filter in repo search (#1951)
* Correctly support language filter in repo search

* Fix failing client test

* Use the correct language code for C++
2019-04-01 13:55:07 +10:00
Patrick
d16ac98d00 DateRange does not include time #1904 (#1905)
* DateRange does not include time #1904

* DateRange does not include time #1904

* DateRange does not include time #1904

* DateRange does not include time #1904

* DateRange does not include time #1904

* Requested changed by ryangribble

* Update to Obselete Attribute messages

#1904 #1905
2019-03-19 21:03:14 +10:00
Jeysson Jose Guevara Mendivil
8407369485 Added 'Archived' flag to Repository response. (#1845)
* Added 'Archived' flag to Repository response.

* add Archived support to repository update
add Archived support to search repo and search issues

* add archived field to ctor
2018-07-17 12:21:48 +10:00
Ryan Gribble
ac5279c632 Fix forks qualifier in repo search and add tests (#1680) 2017-09-13 21:13:07 +10:00
Kristian Hellang
5ee4d64046 Add StringEnum to handle unknown enum values returned from API (#1595)
* Added StringEnum<TEnum>

* Added tests

* Make sure the serializer can work with StringEnum

* Use StringEnum for EventInfo.Event

* Add convention test to assert that all Response models use StringEnum<> to wrap enum properties

* Add Stringnum<> to all response types failing convention test

* Handle StringEnum to Enum conversion when Issue response model populates IssueUpdate request model

* Fix unit test

* Refactor SimpleJsonSerializer to expose the DeserializeEnum strategy so it can be used in StringEnum class

* Need to expose/use SerializeEnum functionality too, so we use the correct string representation of enum values that have custom properties (eg ReactionType Plus1 to "+1")

* fix unit tests, since the string is now the "correct" upstream api value

* Add a couple of tests for the Enum serialize/deserialize when underscores, hyphens and custom property attributes are present

* Compare parsed values for equality

* add convention test to ensure enum members all have Parameter property set

* update test to cover implicit conversions too

* this test should work but fails at the moment due to magic hyphen removal in deserializer causing a one way trip from utf-8 to EncodingType.Utf8 with no way to get back

* (unsuccesfully) expand event info test to try to catch more cases of unknown event types

* fix broken integration test while im here

* Fixed build errors after .NET Core merge

* Value -> StringValue, ParsedValue -> Value

* Don't allow StringValue to be null

* Ignore enums not used in request/response models

* Added ParameterAttribute to almost all enum values

* Ignore Language enum

* Fix failing tests

* Fix milestone sort parameter and tests

* whitespace

* fix milestone unit tests

* Fix StringEnum.Equals ... This could've been embarrassing!

* Change SimpleJsonSerializer Enum handling to only use `[Parameter()]` attributes (no more magic removal of hyphen/underscores from strings)

* Tidy up this integration test while im here

* Only test request/response enums in convention test

* Keep skipping Language

* Remove unused method

* Remove excluded enum types

* Removed unnecessary ParameterAttributes

* Remove unused enum

* Add StringEnum test for string-comparison of two invalid values

* Bring back IssueCommentSort and use it in IssueCommentRequest

This reverts commit 38a4a291d1476ef8c992fe0f76956974b6f32a49.

* Use assembly instead of namespace for Octokit check

* Add failing test to reproduce the issue where only the first enum paramter/value was added to the cache

* Fix deserializer enum cache to include all enum members rather than only the first member encountered

* Use a static SimpleJsonSerializer in StringEnum

* Remove serializer instance in StringEnum

* Add some documentation on StringEnum<TEnum>

* Fix parameter value to resolve failing integration test
2017-06-25 19:29:57 +10:00
aedampir@gmail.com
3bde78b260 changed C# -> CSharp
tests refined
removed unsed usings
2016-09-12 13:59:31 +07:00
Ryan Gribble
f36fe23fbe Remove previously obsoleted mis-spelled Language enum values 2016-09-06 23:15:37 +10:00
aedampir@gmail.com
3d9402bef5 'Some misspellings were fixed' 2016-03-31 12:53:20 +07:00
aedampir@gmail.com
2fa41b7f3f SearchRepositoriesRequest fixes 2016-03-29 17:42:20 +07:00
Mordechai Zuber
44304ca70b use string per recommended style 2015-12-16 21:23:36 +02:00
Brendan Forster
80719c0033 aaaand format the code 2015-11-04 13:38:51 -08:00
Brendan Forster
50a2b97c17 actually some real errors 2015-11-03 09:32:58 -08:00
Haacked
862bf6a5d3 Add a bunch of doc comments
We get a lot of build output because of missing XML comments that we
ignore. I'd like to stop ignoring them. To do that, we need to doc the
💩 out of everything.
2015-09-27 17:10:39 -07:00
Haacked
30e7b851ae Remove redundant ctors 2015-08-04 21:20:18 -07:00
Haacked
726e306bf6 🎨 Make fields readonly 2015-08-04 21:20:07 -07:00
Haacked
eb5d14cfdc Organize usings and remove unused 2015-08-04 21:12:37 -07:00
Chris Missal
43b6f1b335 Add multiple dates to DateRange filter
resolves #841
2015-07-31 17:54:19 -05:00
Alex Gyori
060e1e09ac Added no-args constructor to the SearchRepositoriesRequest. Fixing issue 732. 2015-06-29 10:02:55 -07:00
Kristian Hellang
c9838662dc Fixed failing DebuggerDisplay tests 2015-01-06 01:06:03 +01:00
Haacked
1dd42ec4c8 Use IReadOnlyList instead of IReadOnlyCollection or IEnumerable
For response models.
2015-01-04 14:28:06 -08:00
Brendan Forster
dca5cb845d i'm not documenting all these languages 2015-01-03 09:30:08 -08:00
Brendan Forster
8aad3b0787 fixing a bunch of warnings 2015-01-03 09:30:05 -08:00
Haacked
dd712ff0e9 Made some minor style changes 2014-10-24 15:27:23 -07:00
Haroon
11933714a5 added params 2014-08-15 19:15:29 +01:00
Haroon
31345f63d8 forkqualifier should be nullable 2014-03-16 02:12:58 +00:00
Haroon
26d51933c4 test correct return type 2014-03-15 22:55:49 +00:00
Haroon
ce2884998b updated base class 2014-03-01 15:39:52 +00:00
Amy Palamountain
8b39f4f2ce Debugger display + extra clean up 2014-02-19 21:18:30 +13:00
Haroon
4fc0e23356 Merge branch 'master' into search-users 2014-01-19 21:16:31 +00:00
Henrik Andersson
f453c6df3f Fix date format in DateRange 2014-01-07 22:08:38 +10:00
Haroon
14b5234ae1 fixed xml symbols
less than symbols were not being generated - subtle bug
2014-01-01 09:13:24 +00:00
Haroon
619f17e183 changed to any() 2013-12-01 11:01:55 +00:00
Haroon
f91357e203 fork is never null so pass it on always 2013-11-30 08:25:48 +00:00
Haroon
ac98dd5edd cleaned up in qualifier setter and getter 2013-11-30 08:25:33 +00:00
Haroon
552288d058 add default sort 2013-11-30 08:22:43 +00:00
Haroon
b2edfd259a cleaned up ctor 2013-11-30 08:18:58 +00:00
Haroon
f48f442768 cleaned up lengthy namespace 2013-11-25 10:52:32 +00:00
Haroon
270cdc8740 added CultureInfo.InvariantCulture to strings 2013-11-25 10:43:43 +00:00
Haroon
4fd65200e1 better names for qualifiers 2013-11-25 10:37:12 +00:00
Haroon
f5e4a8c583 better documentation
add missing file to mono and touch projs
2013-11-22 10:44:06 +00:00
Haroon
08aaed93b0 renamed to searchqualifieroperator
make it clearer what this class is, plus updated all relevant project
files.
2013-11-22 10:35:07 +00:00
Haroon
3607e0d0eb better documentation for date range class 2013-11-22 10:27:48 +00:00