Skip to content

Feature 9990 #614

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

Merged
merged 8 commits into from
Oct 18, 2018
Merged

Conversation

mmoqui
Copy link
Member

@mmoqui mmoqui commented Sep 17, 2018

@NicolasEYSSERIC
Copy link
Member

Here are my feedbacks :

  • Tab "Paramètrage de connexion" must be renamed "Paramètres de connexion"
  • when adding/updating a line : null appears in each empty input
  • "not empty" control doesn't work
  • when deleting a line : Question is not complete and it must starts with a capital letter.
  • Foreign keys must not be filled manually
  • Adding a label "Tables : " before tables list
  • A simple user is not allowed to switch between tables. Strange, isn't it ?

@mmoqui
Copy link
Member Author

mmoqui commented Sep 25, 2018

My answers to some of your questions:

when adding/updating a line : null appears in each empty input

Yes, because by default, the value of such fields are null. Those values are taken as such - a null value. Otherwise, for text-based type fields, nothing in those fields mean an empty text. (Don't forget the inputs are SQL fields.)

"not empty" control doesn't work

What do you mean by "not empty" control? Gives me the steps of the test in which such a control should be invoked.

A simple user is not allowed to switch between tables. Strange, isn't it ?

No, I don't think so. It is the behavior in JDBCConnector and then I think it should be also the behavior of MyDB in Silverpeas 5: only the users having a role authorizing a modification have the right to select the default table for the current data source.

@mmoqui mmoqui force-pushed the feature-9990 branch 2 times, most recently from f765564 to d5720d1 Compare September 28, 2018 06:11
@mmoqui
Copy link
Member Author

mmoqui commented Sep 28, 2018

For information, I've updated the code to take into account your different remarks.
One of them is the null value appearing in the fields of a new row in edition. Now, by default, all the fields in a new row are empty, meaning they are valued with null. To indicate explicitly an empty string for text-based field, the symbol @empty@ has to be used (otherwise, the field is valued with null).

mmoqui added 7 commits October 4, 2018 15:35
Improve a little some of the JDBC Connector application code.
Restore the MyDB application and rewrite its code from the JDBC Connector's
one: this first step is about only to read the content of a given table as
well as to apply some filter on its content (like it is does in JDBC
Connector).
- The filtering on the current table rows is now performed directly in the SQL
  query. This implies that each time a table is viewed, the request is
  executed.
- When fetching the columns of a table, both their name and their SQL type are
  get.
- Use of JdbcSqlQuery in the requesting of the database.
For doing, we don't use anymore the programmatic build of an XML form in order
to both render the row modification form and to take into account the SQL types
in the rendering of the HTML inputs by converting them to the predefined types
of the XML form fields.
Instead we use a classic HTML form directly built from the row to be updated
and by taking into account some of the SQL types of each row's field. The form
is rendered directly within a javascript popin, providing a better user
experience (read modern user experience). Because the publishers can update the
content of a database table's row, because the publishers work directly with
a database, the characteristics and the constrains of SQL is no more (and
badly) hidden by the GUI. It is expected the publishers know SQL to update the
rows of a table; we provide only a GUI-way to do that (not a simple SQL
statement editor).
Fix some bugs. Improve the feedback when an error is encountered while
requesting the database. Add the insertion of a new row into the default table.
…olumns are

foreign keys to a row of another table and improve the user experience by
opening the targeted table to allow the user to select the row that will be
referred by the foreign key in the current edited row of the default table
(id est table that is currently selected for the current selected data source.)
described here:
pgjdbc/pgjdbc#892
https://www.cis.upenn.edu/~bcpierce/courses/629/jdkdocs/guide/jdbc/getstart/mapping.doc.html

Fix a bug with the setting of the selected foreign key in the edition form of
a row (the bug is fixed by deleting any the HTML root element of the popup when
closed).
@NicolasEYSSERIC NicolasEYSSERIC merged commit d17e9cb into Silverpeas:master Oct 18, 2018
@mmoqui mmoqui deleted the feature-9990 branch January 28, 2019 08:37
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

Successfully merging this pull request may close these issues.

2 participants