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

Filter for reference fields not working in list screens #32

Open
smunir opened this issue Apr 11, 2021 · 2 comments
Open

Filter for reference fields not working in list screens #32

smunir opened this issue Apr 11, 2021 · 2 comments

Comments

@smunir
Copy link

smunir commented Apr 11, 2021

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

@yelhouti
Copy link
Contributor

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

@smunir
Copy link
Author

smunir commented Apr 11, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants