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

Feature: Webhooks workspace #962

Merged
merged 51 commits into from
Feb 29, 2024
Merged
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
cbab06e
Add webhooks workspace
bjarnef Nov 3, 2023
06ac012
Update workspace alias for log viewer
bjarnef Nov 3, 2023
b7b1e6c
Rename entity type
bjarnef Nov 3, 2023
da2610e
Comment import of components
bjarnef Nov 3, 2023
7c0b555
Add repository and context
bjarnef Nov 3, 2023
30dad4c
Export repository
bjarnef Nov 5, 2023
533ac91
Set workspace context
bjarnef Nov 5, 2023
6bbddc4
Include webhooks
bjarnef Nov 5, 2023
5aeb024
Add webhooks package
bjarnef Nov 5, 2023
1aafc82
Add webhook handlers
bjarnef Nov 5, 2023
312e0d8
Fix typo
bjarnef Nov 5, 2023
4a39b06
Set webhooks context
bjarnef Nov 5, 2023
e4cb9e6
Update logs icon
bjarnef Nov 5, 2023
740aac2
Prepare table data
bjarnef Nov 5, 2023
bc0d3a0
Fix renamed repository
bjarnef Nov 5, 2023
5208f42
Revert "Update workspace alias for log viewer"
bjarnef Nov 6, 2023
7cdc643
Merge branch 'main' into feature/webhooks-workspace
bjarnef Nov 26, 2023
d1e8747
Merge branch 'main' into feature/webhooks-workspace
bjarnef Nov 28, 2023
82f5a11
Merge branch 'main' of github.com:umbraco/Umbraco.CMS.Backoffice into…
bjarnef Feb 26, 2024
590405b
Add webhook models
bjarnef Feb 26, 2024
6426c10
Move workspace
bjarnef Feb 26, 2024
79ed1ef
Update using new collection view
bjarnef Feb 26, 2024
43f0219
Update manifests
bjarnef Feb 26, 2024
267967b
Add package bundle
bjarnef Feb 26, 2024
9259cdd
Update icon
bjarnef Feb 26, 2024
e40ce60
Include handlers
bjarnef Feb 26, 2024
228e0ae
Adjust table collection for webhook
bjarnef Feb 26, 2024
e65fb99
Adjust manifest files
bjarnef Feb 26, 2024
d2ecd49
Correction
bjarnef Feb 26, 2024
03ce138
Rename
bjarnef Feb 27, 2024
f650de8
Merge branch 'main' of github.com:umbraco/Umbraco.CMS.Backoffice into…
bjarnef Feb 27, 2024
b9055f3
Overview workspace
bjarnef Feb 27, 2024
d1fbb46
Merge remote-tracking branch 'origin/main' into pr/bjarnef/962
iOvergaard Feb 29, 2024
2f70fc5
reset language manifests file
iOvergaard Feb 29, 2024
a1333db
fix models
iOvergaard Feb 29, 2024
ce22707
remove global context
iOvergaard Feb 29, 2024
91eb661
fix interface implementation
iOvergaard Feb 29, 2024
1bb00ae
remove outcommented lines
iOvergaard Feb 29, 2024
4e96328
register the webhooks package globally
iOvergaard Feb 29, 2024
70f19d0
move files around to align with other workspaces and fix webhook root…
iOvergaard Feb 29, 2024
96eea40
register collection repository and use correct parameters to show lis…
iOvergaard Feb 29, 2024
0aef3be
remove unknown alias property
iOvergaard Feb 29, 2024
fe34159
move around to register webhooks workspace context
iOvergaard Feb 29, 2024
e1b12c3
align naming
iOvergaard Feb 29, 2024
e237987
fix lint errors
iOvergaard Feb 29, 2024
e9cff58
Merge branch 'main' of https://github.com/umbraco/Umbraco.CMS.Backoff…
iOvergaard Feb 29, 2024
08d7e35
Merge remote-tracking branch 'origin/main' into pr/bjarnef/962
iOvergaard Feb 29, 2024
e23515c
fix errors after merge
iOvergaard Feb 29, 2024
5c71e80
rename 'webhooks' to 'webhook' (singular)
iOvergaard Feb 29, 2024
73c6b4b
generate global export
iOvergaard Feb 29, 2024
620dd0d
fix lint error
iOvergaard Feb 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Unchanged files with check annotations Beta

public destroy(): void {
this.#host?.removeController(this);
(this.#host as any) = undefined;

Check warning on line 29 in src/libs/context-api/consume/context-consumer.controller.ts

GitHub Actions / build (20)

Unexpected any. Specify a different type
super.destroy();
}
}
}
export class UmbContextDebugRequest extends Event {
public constructor(public readonly callback: any) {

Check warning on line 48 in src/libs/context-api/consume/context-request.event.ts

GitHub Actions / build (20)

Unexpected any. Specify a different type
super(UMB_DEBUG_CONTEXT_EVENT_TYPE, { bubbles: true, composed: true, cancelable: false });
}
}
* @param contexts This is a map of the collected contexts from umb-debug
* @returns An array of simplified context data
*/
export function contextData(contexts: Map<any, any>): Array<DebugContextData> {

Check warning on line 8 in src/libs/context-api/debug/context-data.function.ts

GitHub Actions / build (20)

Unexpected any. Specify a different type

Check warning on line 8 in src/libs/context-api/debug/context-data.function.ts

GitHub Actions / build (20)

Unexpected any. Specify a different type
const contextData = new Array<DebugContextData>();
for (const [alias, instance] of contexts) {
const data: DebugContextItemData = contextItemData(instance);
* @param contextInstance The instance of the context
* @returns A simplied object contain the properties and methods of the context
*/
function contextItemData(contextInstance: any): DebugContextItemData {

Check warning on line 23 in src/libs/context-api/debug/context-data.function.ts

GitHub Actions / build (20)

Unexpected any. Specify a different type
let contextItemData: DebugContextItemData = { type: 'unknown' };
if (typeof contextInstance === 'function') {
* @param klass The class to get the methods from
* @returns An array of method names as strings
*/
function getClassMethodNames(klass: any) {

Check warning on line 89 in src/libs/context-api/debug/context-data.function.ts

GitHub Actions / build (20)

Unexpected any. Specify a different type
const isGetter = (x: any, name: string): boolean => !!(Object.getOwnPropertyDescriptor(x, name) || {}).get;

Check warning on line 90 in src/libs/context-api/debug/context-data.function.ts

GitHub Actions / build (20)

Unexpected any. Specify a different type
const isFunction = (x: any, name: string): boolean => typeof x[name] === 'function';

Check warning on line 91 in src/libs/context-api/debug/context-data.function.ts

GitHub Actions / build (20)

Unexpected any. Specify a different type
const deepFunctions = (x: any): any =>

Check warning on line 92 in src/libs/context-api/debug/context-data.function.ts

GitHub Actions / build (20)

Unexpected any. Specify a different type

Check warning on line 92 in src/libs/context-api/debug/context-data.function.ts

GitHub Actions / build (20)

Unexpected any. Specify a different type
x !== Object.prototype &&
Object.getOwnPropertyNames(x)
.filter((name) => isGetter(x, name) || isFunction(x, name))