Skip to content
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

Begin implementation of Enterprise ManagementConsole API, redux #2010

Merged
merged 29 commits into from
Sep 22, 2019

Conversation

shiftkey
Copy link
Member

@shiftkey shiftkey commented Sep 22, 2019

Supersedes #1269 which predates a lot of nice things:

  • the cleanup of csproj files
  • maintainers being able to push to PR branches (so I can rebase the work)

This felt close enough, but it's been a few years so I'm gonna need time to read it over again.

  • builds and tests pass
  • review changes and tests make sense
  • add some docs
  • tidy up diff

@codecov
Copy link

codecov bot commented Sep 22, 2019

Codecov Report

Merging #2010 into master will decrease coverage by 0.06%.
The diff coverage is 51.28%.

@@            Coverage Diff             @@
##           master    #2010      +/-   ##
==========================================
- Coverage   70.85%   70.78%   -0.07%     
==========================================
  Files         529      535       +6     
  Lines       13961    14062     +101     
==========================================
+ Hits         9892     9954      +62     
- Misses       4069     4108      +39
Impacted Files Coverage Δ
...okit/Models/Response/Enterprise/AdminStatsPulls.cs 0% <0%> (ø) ⬆️
...kit/Models/Response/Enterprise/LdapSyncResponse.cs 0% <0%> (ø) ⬆️
Octokit/Helpers/ReferenceExtensions.cs 0% <0%> (ø) ⬆️
...els/Response/Enterprise/MaintenanceModeResponse.cs 0% <0%> (ø)
...e/Clients/Enterprise/ObservableEnterpriseClient.cs 0% <0%> (ø) ⬆️
...okit/Models/Response/Enterprise/AdminStatsHooks.cs 0% <0%> (ø) ⬆️
...okit/Models/Response/Enterprise/AdminStatsGists.cs 0% <0%> (ø) ⬆️
...okit/Models/Response/Enterprise/AdminStatsRepos.cs 0% <0%> (ø) ⬆️
...dels/Response/Enterprise/SearchIndexingResponse.cs 0% <0%> (ø) ⬆️
...okit/Models/Response/Enterprise/AdminStatsPages.cs 0% <0%> (ø) ⬆️
... and 21 more

ryangribble and others added 25 commits September 22, 2019 13:45
…eciton, to achieve managemet console access rather than requiring a specific GitHubClient that cant call normal API's

Instead, the management client methods can check the base Url and if it contains /api/v3/ they can set their relative endpoint Uri to include a leading "/" which will cause the /api/v3/ to be removed.
…izer can be used to serialize it. Remove MaintenanceDate class and just pass in the Date/string for when

Still need to use UrlFormEncoding rather than json in the POST body though...
…existing RequetParameters) and inherit from it in UpdateMaintenanceRequest
…ance OFF regardless of initial requested state
@shiftkey shiftkey force-pushed the maintenance-work-rebased branch from 6004993 to 43914e5 Compare September 22, 2019 16:46
Copy link
Member Author

@shiftkey shiftkey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was worried that this was our first Enterprise-specific APIs but it turns out there's a bunch and I just don't remember them. Gonna merge this in and then tackle #2011

@shiftkey shiftkey merged commit 8cd0b34 into master Sep 22, 2019
@shiftkey shiftkey deleted the maintenance-work-rebased branch September 22, 2019 18:10
@shiftkey
Copy link
Member Author

release_notes: added Management Console API to view and edit maintenance mode

This was referenced Sep 22, 2019
@nickfloyd nickfloyd added Type: Feature New feature or request and removed category: feature labels Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants