Skip to content

Edit mongodb provider#139

Open
alibazregar wants to merge 29 commits into
masterfrom
edit-mongodb-provider
Open

Edit mongodb provider#139
alibazregar wants to merge 29 commits into
masterfrom
edit-mongodb-provider

Conversation

@alibazregar

Copy link
Copy Markdown
Collaborator

No description provided.

@alibazregar alibazregar requested a review from Qamsari November 23, 2024 14:06

@Qamsari Qamsari left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please see my notes

Comment thread Models/Index4Response.js Outdated
setting.deform
);
const dirPath = path.dirname(destinationPath);
await fs.promises.mkdir(dirPath, { recursive: true });

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please check that the directory does not exist before creating it.
check Index4Response._createDirectoryIfNotExist()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Remove it from repository

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Remove it from repository

@@ -82,10 +82,7 @@ export default class SourceCommand extends CommandBase {
params: JSON.stringify(paramList),
}
context.debugContext.addDebugInformation(`Parameter(s) Send To '${sourceName}' From Command '${connectionName}' in 180 ms`,[debugParams])

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

hard code time?! in 180 ms

Comment thread Models/Connection/ConnectionInfo.js Outdated
* @returns {Promise<DataSourceCollection>}
*/
loadDataAsync(parameters, cancellationToken) {
loadDataAsync(parameters, cancellationToken,options) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why do we need options here?

@Qamsari Qamsari left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please see mu issues

Comment thread Models/Connection/ConnectionInfo.js Outdated
Comment on lines +63 to +65
async insertAsync(sourceName, connectionName, databaseName, collectionName, data) {
throw new Error("ConnectionInfo.insertAsync() method not implemented.");
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why should this method be declared in the base class?
Declare internally in the related class

Comment thread Models/Index4Response.js
Comment on lines 160 to 162
if (!fs.existsSync(pathDirectory)) {
fs.mkdirSync(pathDirectory);
fs.mkdirSync(pathDirectory,{recursive : true});
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why should we not use Index4Response._createDirectoryIfNotExist(pathDirectory)?

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