Skip to content

Commit

Permalink
Fix issues in reference model to get all to pass
Browse files Browse the repository at this point in the history
  • Loading branch information
xiwenc committed Apr 12, 2024
1 parent 4bdd3c4 commit 033592b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 73 deletions.
4 changes: 2 additions & 2 deletions lint/lint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ func TestLintBundle(t *testing.T) {
t.Run("all-policy", func(t *testing.T) {
err := EvalAll("./../policies", "./../modelsource", "")

if err == nil {
t.Errorf("We expect failures in the reference model")
if err != nil {
t.Errorf("No failures expected: %v", err)
}
})
}
23 changes: 1 addition & 22 deletions modelsource/MyFirstModule/DomainModels$DomainModel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,7 @@ Annotations:
ExportLevel: Hidden
Width: 440
Associations: null
CrossAssociations:
- $Type: DomainModels$CrossAssociation
Child: System.User
DeleteBehavior:
$Type: DomainModels$DeleteBehavior
ChildDeleteBehavior: DeleteMeButKeepReferences
ChildErrorMessage: null
ParentDeleteBehavior: DeleteMeButKeepReferences
ParentErrorMessage: null
Documentation: ""
ExportLevel: Hidden
Name: Bike_User
Owner: Default
ParentPointer:
Data: gHs+zUMPEkqt8W+kjKXWew==
Subtype: 0
Source: null
Type: Reference
CrossAssociations: null
Documentation: ""
Entities:
- $Type: DomainModels$EntityImpl
Expand Down Expand Up @@ -102,10 +85,6 @@ Entities:
AccessRights: ReadOnly
Association: ""
Attribute: MyFirstModule.Bike.PurchaseDate
- $Type: DomainModels$MemberAccess
AccessRights: ReadOnly
Association: MyFirstModule.Bike_User
Attribute: ""
XPathConstraint: ""
XPathConstraintCaption: ""
Attributes:
Expand Down
46 changes: 1 addition & 45 deletions modelsource/MyFirstModule/Folder/Page.Forms$Page.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ FormCall:
$Type: Forms$OptionDesignPropertyValue
Option: None
DynamicClasses: ""
Style: 'color: orange;'
Style: ""
ConditionalVisibilitySettings: null
Content:
$Type: Forms$ClientTemplate
Expand Down Expand Up @@ -323,50 +323,6 @@ FormCall:
NativeTextStyle: Text
RenderMode: Text
TabIndex: 0
- $Type: Forms$DynamicText
Appearance:
$Type: Forms$Appearance
Class: ""
DesignProperties: null
DynamicClasses: ""
Style: ""
ConditionalVisibilitySettings: null
Content:
$Type: Forms$ClientTemplate
Fallback:
$Type: Texts$Text
Items: null
Parameters:
- $Type: Forms$ClientTemplateParameter
AttributeRef:
$Type: DomainModels$AttributeRef
Attribute: System.User.Name
EntityRef:
$Type: DomainModels$IndirectEntityRef
Steps:
- $Type: DomainModels$EntityRefStep
Association: MyFirstModule.Bike_User
DestinationEntity: System.User
Expression: ""
FormattingInfo:
$Type: Forms$FormattingInfo
CustomDateFormat: ""
DateFormat: Date
DecimalPrecision: 2
EnumFormat: Text
GroupDigits: false
SourceVariable: null
Template:
$Type: Texts$Text
Items:
- $Type: Texts$Translation
LanguageCode: en_US
Text: '{1}'
Name: text3
NativeAccessibilitySettings: null
NativeTextStyle: Text
RenderMode: Text
TabIndex: 0
ConditionalVisibilitySettings: null
HorizontalAlignment: None
SpacingBetweenColumns: true
Expand Down
8 changes: 4 additions & 4 deletions modelsource/Security$ProjectSecurity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ CheckSecurity: true
DemoUsers:
- $Type: Security$DemoUserImpl
Entity: Administration.Account
Password: I2trLMI0IOON
Password: '`R38^&uA/0[<'
UserName: demo_administrator
UserRoles:
- Administrator
- $Type: Security$DemoUserImpl
Entity: Administration.Account
Password: 7IwRQRqV4lpq
Password: .>|nR1YXr,'L
UserName: demo_user
UserRoles:
- User
EnableDemoUsers: true
EnableDemoUsers: false
EnableGuestAccess: false
FileDocumentAccess:
$Type: Security$FileDocumentAccessRuleContainer
Expand All @@ -30,7 +30,7 @@ PasswordPolicySettings:
MinimumLength: 12
RequireDigit: true
RequireMixedCase: true
RequireSymbol: false
RequireSymbol: true
SecurityLevel: CheckEverything
StrictMode: false
StrictPageUrlCheck: true
Expand Down
Binary file modified resources/app/App.mpr
Binary file not shown.

0 comments on commit 033592b

Please sign in to comment.