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

36 Коммитов

Автор 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 682553ab0e Syncing updates 2023-07-12 21:00:23 -07:00
Jeff Wilcox 4ca3b70ae1 Type updates 2023-06-11 17:42:22 -07:00
Jeff Wilcox f15b8f2d61 + missing files 2023-02-10 21:34:57 -08:00
Nick Schonning 728ef1487f
chore: remove unused lodash requires 2022-11-01 13:38:05 -04:00
Nick Schonning 8332719638
fix: prefer-const 2022-10-11 21:20:41 -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 0921e2d578 Integrating latest Microsoft changes
Updates the open source project to reflect the recent updates
around continuing to make it easier to build in paralell and have
company-specific updates without impacting the upstream as much.
2022-10-07 01:23:29 +00:00
Jeff Wilcox 6aca65ae1e
Integrating stylistic community pull request saves 2021-10-07 15:23:50 -07:00
Jeff Wilcox a9cfcc38f4 Merge branch 'eslint-console' of https://github.com/nschonni/opensource-portal into nschonni-eslint-console 2021-10-07 21:58:49 +00:00
Jeff Wilcox 41047e2612
Latest source 2021-07-17 14:33:35 -07:00
Jeff Wilcox b256b70af0
Improved new repo lockdown, app/job reconfig
- Improved new repository lockdown experience
  - Supports swapping description and website URL for repos temporarily until approval
  - Supports an initial README commit directing people to the setup experience, if there are no commits yet
  - Directly created repos become private immediately but retain access for the initial creator of the repo with read permission
- Removes new repository branch rename feature (GitHub natively supports org-level and enterprise-level custom defaults now)
- Removes 'uuid' dependency to favor newer Node LTS 14+ crypto.randomUUID
- App and job configuration object replaces "treatGitHubAppAsBackground" with "enableAllGitHubApps"
- Table encryption bug fix when pulling from key vault
- Chore: updates NPM dependencies
2021-06-03 10:08:30 -07:00
Nick Schonning 080b0caf6b
chore: Drop file level eslint-disable for console 2021-04-09 20:20:13 -04: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
Nick Schonning 2f3b9b8ee7
chore: Initial ESLint setup 2021-03-25 14:24:46 -04: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 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 2a68b3bace Integrating latest fixes, package updates 2020-08-18 22:48:42 -07:00
Jeff Wilcox 9d14a9c550 Promise-based mail address provider + app profiles 2020-07-20 08:27:41 -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 f757314bdb This will eventually enable an "easy button" experience to rename a branch
to `main`, or another name, including rewriting protected branch
restriction rules, creating the branch, updating any open pull requests
targeting the old branch name, and removing the old branch, with
complete logging.

Based on work done by GitHub and others, adapted to our environment,
and improved error logging.

Adds support for GraphQL queries to the GitHub interface system.

This feature requires that an org has had an installation of the "Updates"
app which has access to read/write branches, pull requests, file contents,
as well as administer a repo.
2020-07-07 17:01:19 -07:00
Jeff Wilcox ba26ed04c2 Rename routes/api -> ./api 2020-07-07 11:49:14 -07:00
Jeff Wilcox ff69b6dcb9 Support "main" default branch for new repos
These changes allow new repos to take on the `main` default branch name
in this interim period before the defaults change on GitHub.

For any given GitHub org that is managed, *if* the org has had the Updates GitHub app
installed and configured as an installation, the rename operations can operate on
repo contents and succeed. Otherwise, the branch default will not rename.

Also, API-created repos (by the docs.msft team today) are not adjusted by configuration.

It may be worth adding a dynamic setting for orgs to opt-in, but for now, this is a validation
pass, as only Updates-installed orgs like the Microsoft org will take on the capability.
2020-07-07 11:27:30 -07:00
Jeff Wilcox 9b9497c48e Newer libs; removing unused scripts; updating contribution route 2020-07-06 13:20:39 -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
Rick Anderson 5010f3216c Remove simply per MS style guide 2020-05-29 14:00:35 -10:00
Jeff Wilcox 2be09e199d Native Entities refactoring (Postgres)
Refactoring of the Postgres and EMP (entity metadata provider) interface
to make it more performant, moving beyond the original key-value store
approach for entities and allowing for "native" columns that can have
solid indexes on the columns.

The goal of this integration is to be able to create indexes on the
date fields for open source contributions. Previously, storing this
data inside of Postgres JSON columns made casting difficult or slow
to compute when querying for these values.

Also begins to ship queries away from a central cross-EMP query enum
into compartmenatlized entities.
2020-05-04 15:32:00 -07:00
Jeff Wilcox 1e2379b9e4 Refactoring app startup
Chore: cleaning up app startup routines

- Modernizing with promises instead of callbacks
- Cleans up TypeScript interfaces for the app
- Moving to v2 of `painless-config-resolver`, reducing package count
- Reduces redundant startup code
- Introduces job object and job success return values, simplifies insights reporting when enabled
- Consistent timeout scheme for jobs
2020-04-22 19:16:29 -07:00
Jeff Wilcox 0eaab39442 Events: updating schema
The event entity, used for gathering contribution data, is being
normalized to use proper Postgres columns instead of the hacked-up
JSONB approach.
2020-04-22 10:19:27 -07:00
Jeff Wilcox 93485a4c8e API: improving link lookup performance
Fixing recent regressions that were falling back on an all-link
lookup approach. Was lazy. This is better, when querycache is in
use, for now.
2020-04-20 22:11:50 -07:00
Jeff Wilcox ab2c41a375 Integrating FOSS Fund election changes
- chore: the root app is now a module
- updated election implementation for FOSS Fund
- fixes a null ref in the corporate contact provider after a timeout
- terminates the `reports` job quickly for now (the job remains broken)
- adds a new configuration setting for an election manager e-mail contact
- app insights should filter out HTTP 404 API responses which are technically a success
- updated vote displays
- updated script for 2nd mail campaign
2020-04-20 19:38:25 -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