зеркало из
1
0
Форкнуть 0
Граф коммитов

40 Коммитов

Автор SHA1 Сообщение Дата
Jeff Wilcox 20b1066ed9 Moving files 2024-01-03 11:44:13 -08:00
Jeff Wilcox e165cb14d0 Updates; remove rename branch code 2023-08-14 22:04:30 -07:00
Jeff Wilcox d5a28ed738 Octicons, express: major type updates 2023-06-14 13:56:07 -07:00
Jeff Wilcox 4ca3b70ae1 Type updates 2023-06-11 17:42:22 -07:00
Jeff Wilcox 66b87b31d0 API session refactor + directory prune
- Client APIs remain behind the session middleware
- Non-client APIs no longer set cookies given their stateless nature
- Simplifies the directory structure
- Removes Microsoft-specific API configuration and code not useful to the OSS version
2023-05-11 13:07:14 -07:00
Jeff Wilcox 0f42e7f2cb ES2022: cause
Replaces the old custom "inner" and "innerError" concept from
the legacy app with the modern cause parameter.
2023-04-06 18:10:22 -07:00
Jeff Wilcox 182a8e2c9e Corporate: removing unused company-specific bits 2023-01-17 15:52:04 -08:00
Jeff Wilcox c07b717731 Merge branch 'prefer-const' of https://github.com/nschonni/opensource-portal into nschonni-prefer-const 2022-10-31 21:52:59 +00:00
Jeff Wilcox 0af67ee0cd Latest build 2022-10-31 03:32:58 +00:00
Nick Schonning 8332719638
fix: prefer-const 2022-10-11 21:20:41 -04:00
Nick Schonning deea160f69
fix: various typos 2022-10-09 23:02:44 -04:00
Jeff Wilcox 9f3f1cb00d
Prettier linting, README update (#399) 2022-10-07 15:25:28 -07:00
Jeff Wilcox 9d54251c56 Prettier / consistency 2022-10-07 06:59:30 +00:00
Jeff Wilcox 6aca65ae1e
Integrating stylistic community pull request saves 2021-10-07 15:23:50 -07:00
Abraham Ugbeshe e6e2ff0e4b Removed express since its value is never read 2021-04-27 22:22:17 +01:00
Abraham Ugbeshe 47f1b40c47 Destructed express import 2021-04-27 21:58:45 +01:00
Jeff Wilcox 1e9db0803e
Interface and Test refactor
Removing explicit casts from req.app.settings.providers and using
a function.

Switching from Mocha (which was mostly unused) to Jest.

Moving around type definitions and interfaces in a big way to try
and cleanup some legacy.
2021-04-09 16:36:15 -07:00
Jeff Wilcox 98502f7a72 Interim refactorings and improvements
This is a set of changes that is still stabalizing. Code churn around modernization
could impact company-specific implementations.

interim refactoring as part of a GitHub Enterprise prototype. please avoid using or extending or open an issue in the repo if you are to discuss what should stay vs get yanked.

- introduces a temporary OperationsCore class and a nearly-empty typed interface for operations
- these types will reduce or be removed once the prototype is validated
- "capabilities" allow for partial implementation of operations methods in the prototype

- custom mail provider
- additional view properties or recipients for new repos
- additional non-client API routes
- custom view names in certain places
- ability to process firehose events optionally in a separate codepath
- removes Microsoft-specific mail provider from the project
- fixes a startup race condition

- more interfaces and types exported down the tree to reduce import statements
- additional insights and reduced error logging for valid not found scenarios
- graph manager removes old callback code and interfaces have minor **breaking renames** as a result
- moves some email-sending functions into independent files to reduce core class line count
- ignored catches replaced with telemetry more consistently (partial)
- graph provider adds optional caching (note: this is not yet stable)
- webhook firehose will only attempt deleting messages once

- latest Octokit versions
- uses reusable functions throughout GitHub API calls for max age seconds, background refresh, page size variables
- fixes a bug around app header selection for cross-organization calls
- attempts to use GitHub App authentication instead of central operations token in more places
- supports alternate GitHub REST API locations for app authentication and the API itself
- new GitHub APIs integrated into business classes: get repository issues

- removes request module family, adopting axios
2021-03-25 10:20:40 -07:00
Jeff Wilcox b3ccbac546 Refactor provider instance get
For improved type safety, this uses a function to return the
IProviders instance from the Express app, replacing all instances
of using req.app.settings.providers as IProviders, etc.

This may also make everything slightly more testable, eventually.
2021-03-19 09:20:39 -07:00
Jeff Wilcox 456c5d0646 Organization sudo security group support
Adds support for organization sudo privileges to flow from
security groups instead of from GitHub Teams as the source of
truth.

Sudo remains on by default and configured for teams.

Also provides for company-specific overrides if you have a
different system for authorization decisions that is not part
of the default kit.
2021-03-17 13:02:11 -07:00
Jeff Wilcox 4058a47225 Remove unncessary asNumber function 2021-03-12 13:25:31 -08:00
Jeff Wilcox a17d48e8ef Integrating latest Microsoft changes
This significant pull request patches the open source project with a number
of updates from inside Microsoft as part of connecting an automated publishing
process to keep the public version up-to-date and buildable.

We are also removing Microsoft-specific endpoints and APIs when easy enough to
do, and adding a "company-specific" extension model to try as we go about this.
2021-03-05 14:50:31 -08:00
Jeff Wilcox 0918acc5f4 Adding docs, new corp-specific middleware 2020-07-28 16:26:08 -07:00
Jeff Wilcox 752eac6fcb Chore: cleaning up TS files
- remove 'use strict' from TS files (implicit)
- converting more exports to modern export defaults
- connecting to support for corporate "profile" apps to remove
corp-specific work
- fixes a small bug in the cache provider for Cosmos
2020-07-28 16:24:21 -07:00
Jeff Wilcox 63472fe26b Removing dependency in mailAddressProvider
- Removes legacy "Witness Redis" code that was a Microsoft-internal thing
- Refactors Mail Address Provider for function signatures with a Promise, no callbacks
- Refactors Microsoft Mail Address Provider to use the Graph Provider for mail lookup instead of the legacy Redis system
- Minor chores on updating some imports, default export module functions
- Web server listen routine happens sooner during startup to better land Kubernetes readiness and liveness probes
2020-07-16 13:00:32 -07:00
Jeff Wilcox 207ecdb886 Chore: exports, strict, deps 2020-07-13 10:19:35 -07:00
Jeff Wilcox 6fb01c3813 June updates
During the month of May and June, we forked this application internally
as part of a specific set of temporary changes. To converge once again
with the open source version and make it easier to collaborate with others,
this brings the latest changes up.

There is a need to refactor and feature flag the service account piece into
the newer experience as new debt.
2020-06-11 14:46:09 -07:00
Jeff Wilcox a2193f316b Updating dependencies, refactoring entity providers, removing 'async'
Features
- Team pages now encourage native GitHub.com use for management
- Adding vote capabilities for FOSS Fund (a specialized feature only)

Bug fixes
- Fix for GitHub REST API request endpoints using `requestAsPost`

Chores
- Removing async library
- Cleaner throttle use through a newer `throat` library version and removing confusing typings
- Removes dead code
- Entity metadata providers are moving to a decoupled query and type system vs declarative shared enum sets
- Firehose code is now using await/async and staggers logical threads evenly
- Newer versions of all core dependencies
- More routes imported as modules instead of through `require`
2020-04-19 13:52:36 -07:00
Jeff Wilcox d445329ca3 Integrating updates 2020-04-14 15:57:21 -07:00
Jeff Wilcox 87c2ab52a0 Code refresh to support GitHub Apps
- Enables GitHub App-based server-to-server communication
- Enables dynamic (database-backed) organization setting configuration
- QueryCache system, when paired with a Postgres database and GitHub App webhooks keeps teams, repo lists, etc. up-to-date more efficiently than the older GitHub REST API-based method
- Various bug fixes
2019-10-02 18:41:16 -07:00
Jeff Wilcox 260a7b55f1 Refactoring
This evolves many codepaths to await/async, ES6, promises, etc.
There is still more work to be done.
2019-08-26 09:54:28 -07:00
Jeff Wilcox d388e4cb96 Entity metadata provider refactoring
- Entities (links, join requests, repo metadata) refactored
- Entities can be stored in Postgres, Azure Table, or memory
- Introduces a quickstart memory provider mode
- Evolution of more classes and methods to ES6, await/async, TypeScript typings
- Updates of package versions
2019-08-06 16:53:50 -07:00
Jeff Wilcox f8c0ba1774
TypeScript implementation
Major updates to the application, including some minor breaking changes.

The public updates (that make it less Microsoft-specific) are still in
development; this represents trying to get it ready for updates.
2019-04-05 14:45:34 -07:00
Jeff Wilcox 45b698c766
Route refresh 2018-05-02 10:40:50 -07:00
Jeff Wilcox e981896543 Merge branch 'refactorOldCode' of https://github.com/Microsoft/opensource-portal into public/refactorOldCode 2017-06-29 13:46:12 -07:00
Jeff Wilcox df8e7de5fb Unlink fixes 2017-06-29 11:25:31 -07:00
Jeff Wilcox a10659c32f Refactor: removing lib/user.js legacy class 2017-06-22 13:51:34 -07:00
Jeff Wilcox e2f3959b3c
Refactoring and removing ancient code 2017-06-15 09:17:39 -07:00
Jeff Wilcox ff0e8b2b5b Part 1: Legacy code removal
Removes old "req.org", "req.oss", "req.team" request middleware
attachments with old implementations of GitHub-related entities.
2017-06-09 16:18:17 -07:00
Jeff Wilcox 77ccdc6234 Routes: v5 routes 2017-05-31 10:08:21 -07:00