Skip to content
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

Node Attributes #141

Open
wants to merge 37 commits into
base: main
Choose a base branch
from

Conversation

JesusGuerrero
Copy link
Collaborator

@JesusGuerrero JesusGuerrero commented Feb 17, 2023

Fixes #70.

  • Literal
  • RegEx
    • Renaming node bug
  • Dictionary
  • Sequence
    • If Sequence input nodes aren't connected to the node in the order that they're used in the regex, the aql processor doesn't find matches
  • Union
    • UI capabilities
    • Full functionality
  • Filter
    • UI capabilities
    • Full functionality
  • Consolidate
    • UI capabilities
    • Full functionality

@marthacryan marthacryan self-requested a review February 28, 2023 01:01
Copy link
Collaborator

@marthacryan marthacryan left a comment

Choose a reason for hiding this comment

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

A few comments that are non-blocking on the code - still trying to test it out locally but the code LGTM

@@ -87,7 +87,7 @@ const createZipArchive = async (tmpFolder, fileName) => {
const moveZipFile = (tmpFolder, fileName) => {
const currentPath = `${tmpFolder}/${fileName}`;
const destinationPath = `${systemTdataFolder}/user-data-in/${fileName}`;
fs.rename(currentPath, destinationPath, function (err) {
fs.copyFile(currentPath, destinationPath, function (err) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why are you copying the file instead of renaming?

} = this.state;
const { nodeId } = this.props;
console.log(nodeId);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Extra console log

@@ -309,10 +322,13 @@ class DictionaryPanel extends React.Component {
this.onDeleteItems(props);
}}
renderIcon={Delete16}
iconDescription={'H'}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this be something more descriptive?

@@ -87,10 +87,9 @@
const moveZipFile = (tmpFolder, fileName) => {
const currentPath = `${tmpFolder}/${fileName}`;
const destinationPath = `${systemTdataFolder}/user-data-in/${fileName}`;
fs.rename(currentPath, destinationPath, function (err) {
fs.copyFile(currentPath, destinationPath, function (err) {

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression

This path depends on a [user-provided value](1).
@@ -87,10 +87,9 @@
const moveZipFile = (tmpFolder, fileName) => {
const currentPath = `${tmpFolder}/${fileName}`;
const destinationPath = `${systemTdataFolder}/user-data-in/${fileName}`;
fs.rename(currentPath, destinationPath, function (err) {
fs.copyFile(currentPath, destinationPath, function (err) {

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression

This path depends on a [user-provided value](1).
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.

Consistent treatment of attributes
2 participants