Skip to content

Commit

Permalink
UBERF-7996 Hide github project attributes (#6444)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Onnikov <[email protected]>
  • Loading branch information
aonnikov authored Aug 29, 2024
1 parent 387aecd commit 699e553
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
export let value: Ref<Class<Doc>>
const client = getClient()
const _class = client.getModel().getObject(value)
const _class = value !== undefined ? client.getModel().getObject(value) : undefined
</script>

<Label label={_class.label} />
{#if _class}
<Label label={_class.label} />
{/if}
6 changes: 6 additions & 0 deletions services/github/model-github/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,25 +355,31 @@ export class TGithubAuthentication extends TPreference implements GithubAuthenti
export class TGithubProject extends TProject implements GithubProject {
@Prop(TypeRef(github.class.GithubIntegration), getEmbeddedLabel('Integration'))
@ReadOnly()
@Hidden()
integration!: Ref<GithubIntegration>

@Prop(ArrOf(TypeRef(github.class.GithubIntegrationRepository)), getEmbeddedLabel('Repositories'))
@ReadOnly()
@Hidden()
repositories!: Ref<GithubIntegrationRepository>[]

@Prop(TypeString(), getEmbeddedLabel('NodeID'))
@ReadOnly()
@Hidden()
projectNodeId!: string

@Prop(TypeNumber(), getEmbeddedLabel('Number'))
@ReadOnly()
@Hidden()
projectNumber!: number

@Prop(TypeRef(core.class.Class), getEmbeddedLabel('Attribute Class'))
@ReadOnly()
@Hidden()
mixinClass!: Ref<Class<GithubIssue>>

@Prop(ArrOf(TypeRecord()), getEmbeddedLabel('Field mappings'))
@Hidden()
// Mapping of all fields in this project.
mappings!: GithubFieldMapping[]
}
Expand Down

0 comments on commit 699e553

Please sign in to comment.