tailosoft / jhipster-primeng-blueprint

This blueprint can be used to generate jhipster project with primeng frontend instead of bootstrap (work in progress)
Apache License 2.0
26 stars 21 forks source link

Filter for reference fields not working in list screens #32

Open smunir opened 3 years ago

smunir commented 3 years ago

Filters are not working for reference fields in list screens. No matter multiselect has been populated with lazy load or without it

yelhouti commented 3 years ago

@smunir can you provide a JDL where the issue happens please.

smunir commented 3 years ago

Here you go (shortened to entities I am facing issue with):

CODE_MIN_LEN = 1
CODE_MAX_LEN = 30
NAME_MIN_LEN = 1
NAME_MAX_LEN = 100
DESC_MIN_LEN = 0
DESC_MAX_LEN = 255

entity SystemEntity {
    name String required minlength(NAME_MIN_LEN) maxlength(NAME_MAX_LEN)
  javaType String minlength(NAME_MIN_LEN) maxlength(DESC_MAX_LEN)
}

/**
 * Entity SystemVariable
 */
entity SystemVariable {
    code String required minlength(NAME_MIN_LEN) maxlength(NAME_MAX_LEN)
    description String minlength(DESC_MIN_LEN) maxlength(DESC_MAX_LEN)}

/**
 * Entity SystemVariableItem
 */
entity SystemVariableItem {
    code String required minlength(NAME_MIN_LEN) maxlength(NAME_MAX_LEN)
    // value String required minlength(CODE_MIN_LEN) maxlength(CODE_MAX_LEN)
   attributeId String
}

relationship OneToMany {
    SystemVariable { item (code) } to SystemVariableItem { systemVariable (code) required }
}

relationship ManyToOne {    
    SystemVariableItem { parentItem (label) } to SystemVariableItem
}

relationship ManyToMany {
    SystemVariable { systemEntity (name) } to SystemEntity { systemVariable (code) }
}

paginate * with pagination except SystemEntity
dto * with mapstruct
service * with serviceClass
// search * with no
filter *

.yo-rc.json:

{
  "generator-jhipster": {
    "skipServer": true,
    "databaseType": "sql",
    "devDatabaseType": "sql",
    "prodDatabaseType": "sql",
    "authenticationType": "jwt",
    "blueprints": [
      {
        "name": "generator-jhipster-primeng-blueprint",
        "version": "7.0.2"
      }
    ],
    "otherModules": [
      {
        "name": "generator-jhipster-primeng-blueprint",
        "version": "7.0.2"
      }
    ],
    "applicationType": "monolith",
    "baseName": "sibgo",
    "jhipsterVersion": "7.0.1",
    "skipClient": false,
    "skipUserManagement": false,
    "skipCheckLengthOfIdentifier": false,
    "skipFakeData": false,
    "jhiPrefix": "jhi",
    "entitySuffix": "",
    "dtoSuffix": "DTO",
    "testFrameworks": [],
    "pages": [],
    "creationTimestamp": 1617558461089,
    "clientFramework": "angularX",
    "withAdminUi": true,
    "clientTheme": "none",
    "enableTranslation": true,
    "nativeLanguage": "en",
    "clientPackageManager": "npm",
    "clientThemeVariant": "",
    "languages": ["en"],
    "packageName": "com.mycompany.myapp",
    "cacheProvider": "ehcache",
    "websocket": false,
    "searchEngine": false,
    "buildTool": "maven",
    "serverPort": "8080",
    "serviceDiscoveryType": false,
    "enableHibernateCache": true,
    "reactive": false,
    "entities": ["SystemEntity", "SystemVariable", "SystemVariableItem"],
    "lastLiquibaseTimestamp": 1618141843000
  }
}

I can see rest call to server made on selecting option(s) from multi select but table isn't filtered