Project

General

Profile

Actions

Architecture #4770

closed

Use JSON as datas of tables in Rudder web interface

Architecture #4770: Use JSON as datas of tables in Rudder web interface

Added by François ARMAND almost 12 years ago. Updated over 11 years ago.

Status:
Released
Priority:
5 (lowest)
Category:
Architecture - Code maintenance
Target version:
Effort required:
Name check:
Fix check:
Regression:

Description

We have a lot of tables / grid in Rudder, to present Rules, nodes, compliances, reports, etc etc.

Today, these tables are produced in FULL html, and then enhanced with datatable to make them searchable etc.

That way of working is really heavy in size of data transfered (HTML is not a very dense data reprensentation) and mixed data presentation with the actual datas. Consequently, it's hard or more costly than expected to use refresh these tables, make them asynchrone, etc.

Moreover, browsers evolved a lot in the past 5 years, and today javascript is much more efficient to play with the dom that it used to be, and Rudder mandates the use of JS. So it would be more efficient to let the browser build the HTML for the table than enhancing an existing one.

What we want:

- a JSON representation of the data needed for each table, without loosing any information (tooltips, links, ...).
- a question remains about the formating: we used to use HTML to have rich text format. We need to know if this is still a good idea, and so if we 1/keep HTML for rich text, 2/ accept to not have rich text, 3/ find an other representation than HTML
- a Rudder grid "componenet" configurable for a given grid and able to use the JSON source

All grids have to be migrated to that new source handling, but the first one must be the rule grid.

No implementation restriction are set up front. If it's easier/cleaner to change datatable version (1.10 to use the new code/ajax/json oriented API http://next.datatables.net/reference/api/ ?) or use a third party integration (AngularJS ?), then we won't restrict us IF the result is alike what we have today.

We can even think of having in parallel the new and the old datatable component (for not-yet-migrated grids).


Subtasks 7 (0 open7 closed)

Architecture #4771: Rules datable using JSON data sourceReleasedFrançois ARMANDActions
Architecture #4804: Rule compliance datable using JSON data sourceReleasedFrançois ARMANDActions
Architecture #4845: Rule compliance popup datable using JSON data sourceReleasedFrançois ARMANDActions
Architecture #4846: node list datable using javascript data sourceReleasedFrançois ARMANDActions
Architecture #4945: node compliance datable using javascript data sourceReleasedFrançois ARMANDActions
Bug #4953: Multiple messages in compliance tables are not displayed as a listReleasedFrançois ARMANDActions
Bug #4954: Correct indentation on rudder-datatable.js fileReleasedFrançois ARMANDActions

Related issues 3 (0 open3 closed)

Related to Rudder - User story #4793: Datas in Rudder web interface table can now be refreshedReleasedVincent MEMBRÉActions
Related to Rudder - User story #5957: Make change request table asynchronousReleasedFrançois ARMANDActions
Related to Rudder - User story #5960: Make event log table asynchronous ReleasedVincent MEMBRÉActions

Updated by François ARMAND almost 12 years ago Actions #1

  • Tracker changed from User story to Architecture

Updated by Vincent MEMBRÉ almost 12 years ago Actions #2

  • Status changed from 8 to 13

Rule table (#4771) is in pull request here https://github.com/Normation/rudder/pull/503

Rule compliance (#4804) is almost finished, but needs several pull requests to be merged before

Updated by François ARMAND almost 12 years ago Actions #3

  • Status changed from 13 to 12

Updated by François ARMAND almost 12 years ago Actions #4

  • Status changed from 12 to Pending release

Updated by Vincent MEMBRÉ over 11 years ago Actions #5

  • Subject changed from Use JSON for datatable source in place of HTML to Use JSON as datas of tables in Rudder web interface
  • Category changed from Web - UI & UX to Architecture - Code maintenance

Updated by Vincent MEMBRÉ over 11 years ago Actions #6

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 2.11.0~beta1 that was released yesterday.

Actions

Also available in: PDF Atom