Skip to content

Conversation

@Ki10V01T
Copy link
Contributor

See: #4739

Unimplemented features:
1. Permissions for view
2. Download button
3. Mermaid
4. Separation by Data store
5. JavaDocs
6. Locales
2. Locales creation is completed (need to check)
3. DataStore verification has been completed, no edits are required.
2. Displaying system entities ability has been added
3. Is nullable, Is mandatory fields has been centered
4. Similar to Base64 algorithm encoding for PlantUML has been added
…ng filter filed input (need to discuss)

2. Search by like
3. RegExp support for search
4. Displaying intermediate tables for many-to-many relationships (LINKED_TABLE.LINKED_COLUMN)
5. Timeouts for ping diagram server
@Ki10V01T
Copy link
Contributor Author

Known issues:

  1. I had to implement details and hide the textField inside it to make the urlQueryParameter facet work correctly. This caused the markup to shift (this needs to be discussed).
  2. Flex-grow for the Is Nullable and Is Mandatory columns doesn't work. Because of this, they are slightly wider than necessary.


io.jmix.datatools.datamodel.app/EngineType=Engine type
io.jmix.datatools.datamodel.app/EngineType.MERMAID=Mermaid
io.jmix.datatools.datamodel.app/EngineType.PLANTUML=Plantuml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like it's called PlantUML

io.jmix.datatools.datamodel.entity/AttributeModel=Модель атрибутов
io.jmix.datatools.datamodel.entity/AttributeModel.attributeName=Название атрибута
io.jmix.datatools.datamodel.entity/AttributeModel.columnName=Название колонки
io.jmix.datatools.datamodel.entity/AttributeModel.dbType=БД тип
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Тип БД

io.jmix.datatools.datamodel.entity/AttributeModel.javaType=Java тип

io.jmix.datatools.datamodel.entity/EntityModel.attributes=Атрибуты
io.jmix.datatools.datamodel.entity/EntityModel.id=Идентификатор
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usually, ID doesn't require translation.

io.jmix.datatools.datamodel.entity/AttributeModel.dbType=БД тип
io.jmix.datatools.datamodel.entity/AttributeModel.id=Идентификатор
io.jmix.datatools.datamodel.entity/AttributeModel.isMandatory=Обязательный?
io.jmix.datatools.datamodel.entity/AttributeModel.isNullable=Нулевой?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any other options for translation?

* limitations under the License.
*/

@NonNullApi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for entity package, because you can get/set nulls for any attribute.

}

dataModelManager.setFilteredModels(entityModelsDl.getContainer().getItems());
UI.getCurrent().getPage().open("datatl/data-diagram");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Add a comment, that you use UI.getCurrent().getPage().open intentionally to open a new browser tab.
  2. May need some delegate here so that a TabbedMode can open a new application tab instead.

try {
pattern = Pattern.compile(userInput, Pattern.CASE_INSENSITIVE);
} catch (PatternSyntaxException pse) {
entityNameFilter.setErrorMessage("Regular expression syntax is invalid");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MUST be a localized message!


protected void applyLoadContextWithFiltering(List<String> findedEntityNames) {
if (findedEntityNames.isEmpty()) {
entityNameFilter.setErrorMessage("Entities not found");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MUST be a localized message!

@@ -0,0 +1,75 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<view xmlns="http://jmix.io/schema/flowui/view"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something went wrong:

Image

<layout alignItems="STRETCH"
expand="contentBox"
classNames="jmix-data-model-list-view-layout">
<hbox id="buttonsPanel" classNames="buttons-panel">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. I still think that the Search button is redundant.
Image
  1. <details> is unnecessary complication and breaks layout (see the screenshot above). A simple placeholder will do the trick + you have tooltip for detailed info.

2. Flex-grow has been fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants