Cilantro

Latest version: v2.0.11

Safety actively analyzes 629723 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 5

2.2.30

**Features**
- Added a vocab control for use with the havest-vocab extension (558).
- Show tooltips on result toolbar buttons only when screen size is small (560).
- Render empty and null values as `(empty)` and `(null)` respectively in controls (559).
- Show filters and columns in shared and public queries lists (557, 575).
- Show min before max in field stats region (586).

**Bug Fixes**
- Fix bug where field units were not shown on concepts with only one field (564).
- Fix bug where reloading the results page always caused the `No Columns Selected` popup to be displayed (565).
- Fix bug where some controls generated an error due to premature access (566).
- Fix bug where server errors were handled the same as aborted requests causing client side errors in the keepalive/ping code (569).
- Fix incorrect reference to paginator (573).
- Fix bug where items returned from `/api/fields/NNNN/values/` were being resorted (343).
- Fix bug where navigation to the workspace page via navbar buttons would not cause the queries to be rendered (572).
- Cancel current request before making subsequent requests in paginator (581).
- Fix broken date range controls (584).
- Fix de-parametize in URL utility (f7212257213f639fca)
- Fix problem in infograph where applying exclusion made the exclusion permanent (587).

**Developers**
- Port all models from CoffeeScript to JavaScript (570, 582, 592).
- Added explicit jshint version and fixed remaining errors (589).
- Update maxSerranoVersion to `2.3.5`.

2.2.29

This fixes a bug found when registering an array or object of custom templates via the `cilantro.templates.set` function.

2.2.28

**Developers**

The `cilantro.templates` API now supports remote paths and functions fetched using the Cilantro RequireJS `tpl` plugin. For example:

javascript
define(['cilantro'], function(c) {
// Extracts template ID based on path. Trims the leading slash and `template/`
// prefix if present.
c.templates.set('tpl!myproject/welcome.html');

// Wait until remote templates are loaded
c.ready(function() {
var template = c.templates.get('myproject/welcome');
});
});


javascript
define(['cilantro', 'tpl!myproject/welcome.html'], function(c, template) {
// Extracts template ID from function (added by the tpl plugin as _moduleName)
c.templates.set(template);

// Get it back out
template = c.templates.get('myproject/welcome');
});


Additionally, a validated method has been added(https://github.com/cbmi/cilantro/pull/537) to the ExporterDialog. This can be used by developers who might be extending the ExporterDialog. If you need to perform custom validation or extended validation before exporting results, you can do something like:

javascript
define(['cilantro'], function(c) {

var MyExporterDialog = c.ui.ExporterDialog.extend({
...
validate: function() {
var errors = c.ui.ExporterDialog.prototype.validate.apply(this, arguments);

// Do your custom validation here and add any errors with errors.push(...)

return errors;
},
...
});

});


**Features**
- Added a new config option to disable rounding for result counts under a certain threshold. When left unset, result counts will be rounded and larger values will have suffixes attached. For example, `11,321` would become `11.3K`. However, if we set the threshold, via `c.config.set('threshold', 100000);` for example, then no suffixing would happen because `11,321` is less than the defined threshold of `100,000` (https://github.com/cbmi/cilantro/pull/530/).
- Show the user a notification when a query(new or edited) is successfully saved (https://github.com/cbmi/cilantro/pull/536).
- Notify and provide instructions to the user when the results page is rendered and no columns are selected (https://github.com/cbmi/cilantro/pull/545).

**Bug Fixes**
- Fix issue where Apply/Update Filter buttons were not being disabled/enabled correctly (https://github.com/cbmi/cilantro/pull/532).
- Fix bug that allowed the user to export without selecting any columns (https://github.com/cbmi/cilantro/pull/539).
- Fix bug where control filters were not cleared of old attributes when new ones were set (https://github.com/cbmi/cilantro/pull/548).
- Fix bug where range controls would not disable the "Apply/Update Filter" button after clearing textbox (https://github.com/cbmi/cilantro/pull/551).
- Fix bug where users could save an empty view (https://github.com/cbmi/cilantro/pull/543).

2.2.27

**Changes**
- Current tests have been overhauled
- Fixed misspelled "accordian" components to "accordion"
- The query "Update" button is now disabled if no values are selected for existing filters
- The query workspace is now responsible for triggering the route for itself rather than the filter panel

2.2.26

**Changes:**
- `Accordian`, `AccordianGroup`, `AccordianSection`, `AccordianItem` are all exposed now and can be used by projects that import Cilantro.
- Since they are accessible, the following renaming took place to clarify purpose and avoid name clashes:
- `accordian.Group` becomes `accordian.AccordianGroup`
- `accordian.Section` becomes `accordian.AccordianSection`
- `accordian.Item` becomes `accordian.AccordianItem`

2.2.25

**Fixes:**
- Fix bug where manually entered values were not validated in search control (513)
- Fix CSS on context panel error view overlay so it doesn't break page layout when shown (514).

**Changes:**
- Add support for control based validation
- Context panel message is set based on current route
- Replace concept-level form controls with field controls
- Force applied filters to be enabled
- Remove all now removes all except the required concepts
- Prevent removing a filter from triggering the concept view

Also includes some general refactoring and coffeescript to javascript porting.

Page 4 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.