-
Notifications
You must be signed in to change notification settings - Fork 914
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[all] Introduce file storage for export download and new connector ar…
…chitecture (#130) * Starting work around minio * Introduce File manager component and use it in report * Adapt file manager UI * Prepare the export api * Refactor to move import and export files at stix entity level * Adapt view and backend to log file actions * Add file management in thread actors * Refactor functions to move everything we need at StixDomainEntity level * Remove unused info and add capacity to delete in progress export after 5 min * Adapt deletion + fix dependencies errors from yarn control * Start transformation of the worker. Provide API round queue management * Introducing Jobs and failure reporting * Re activate auto refresh * Add jobs management, massive update * Fix relayjs query typo * Introduce global import menu. Adapt the entity import and export * Fixing tests by replacing the matchAll function * Handle deletion of global imports * Remove unused import * Adapt usage of interface, update of dependencies * [frontend/api] Introduce key for internal_id and stix_id for avoid race conditions (#217) * [api] Fix migations if starting fresh (#217) * [api] Fix migations if starting fresh (#217) * [api] Fix migations if starting fresh (#217) * [api] Fix migations if starting fresh (#217) * Adapt work and jobs to use elastic. Worker changed to report jobs * Cleanup the grakn schema * [frontend] Working on diagram! * Fix comments * Add delete button in observable enrichment * [frontend] Working on graph * Upgrade dependencies * Refactoring of createdByRef, markingDef and KillChain functions * Fix duplicate and adapt readtx * Fix deepScan warning * Fix deepScan warning * [frontend] Handle relation to relation in the knowledge graph * Adapt schema for internal_id_key * Adapt for internal_key * [frontend] Handle relation to relation * [frontend] Graph is now working (#34) * [frontend] Graph is now working (#34) * [frontend] Add marking definitions to StixDOmainEntity edition * [frontend] Add marking definitions to StixDOmainEntity edition * [frontend] Fix relation actions icons and entities update * [api/frontend] Enhance display and fix some bugs * [frontend] Refactor the views of files management
- Loading branch information
Samuel Hassine
committed
Oct 22, 2019
1 parent
81c1e28
commit 2fae0e4
Showing
163 changed files
with
7,177 additions
and
4,358 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* config-overrides.js */ | ||
|
||
module.exports = function override(config) { | ||
config.module.rules.push( | ||
{ | ||
test: /\.mjs$/, | ||
include: /node_modules\/react-relay-network-modern/, | ||
type: 'javascript/auto', | ||
}, | ||
); | ||
config.resolve.extensions.push('.mjs'); | ||
return config; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 13 additions & 13 deletions
26
opencti-platform/opencti-front/src/components/graph_node/EntityNodeModel.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
import { NodeModel } from 'storm-react-diagrams'; | ||
import EntityPortModel from './EntityPortModel'; | ||
import GlobalPortModel from './GlobalPortModel'; | ||
|
||
export default class EntityNodeModel extends NodeModel { | ||
constructor(data) { | ||
super('entity'); | ||
this.addPort(new EntityPortModel('main')); | ||
this.addPort(new GlobalPortModel('main')); | ||
this.extras = data; | ||
this.expandable = false; | ||
} | ||
|
||
setSelected(selected, expand = false) { | ||
setSelectedCustom(selected, edit = false, remove = false) { | ||
this.selected = selected; | ||
this.iterateListeners((listener, event) => { | ||
if (listener.selectionChanged) { | ||
listener.selectionChanged({ ...event, expand, isSelected: selected }); | ||
listener.selectionChanged({ | ||
...event, | ||
edit, | ||
remove, | ||
isSelected: selected, | ||
}); | ||
} | ||
}); | ||
} | ||
|
||
getPosition() { | ||
return { x: this.x, y: this.y }; | ||
} | ||
|
||
setExpandable(expandable) { | ||
this.expandable = expandable; | ||
setExtras(data) { | ||
this.extras = data; | ||
} | ||
|
||
getExpandable() { | ||
return this.expandable; | ||
getPosition() { | ||
return { x: this.x, y: this.y }; | ||
} | ||
} |
Oops, something went wrong.