-
Notifications
You must be signed in to change notification settings - Fork 145
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
Extract NeoDash auth module to an abstract interface to allow for different providers #767
base: develop
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #767 +/- ##
===========================================
- Coverage 37.49% 37.36% -0.14%
===========================================
Files 216 220 +4
Lines 9140 9274 +134
Branches 2703 2730 +27
===========================================
+ Hits 3427 3465 +38
- Misses 5654 5745 +91
- Partials 59 64 +5 ☔ View full report in Codecov by Sentry. |
Quality Gate passedThe SonarCloud Quality Gate passed, but some issues were introduced. 6 New issues |
throw new Error(`Not Implemented: ${functionName}`); | ||
}; | ||
|
||
export abstract class ConnectionModule { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add some docstrings here, since it's a pretty important interface we should document it well
throw new Error(`Not Implemented: ${functionName}`); | ||
}; | ||
|
||
export abstract class NeodashRecordParser { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will break right? bulkParse
for tables?
Maybe we can just leave out the record parser in this iteration of the code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from testing didn't looked like it was breaking, but we can just remove it to be 100% sure.
} | ||
|
||
loadDashboard(_id: string): any { | ||
return notImplementedError('loadDashboard'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are we including dashboards CRUD operations in the current scope or not yet?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally we should, but let's focus first on migrating the format of the records, i think that's more urgent. In the current release we should just create the base for the next releases.
@@ -303,70 +303,71 @@ export const loadDashboardFromNeo4jThunk = (driver, database, uuid, callback) => | |||
|
|||
try { | |||
const query = 'MATCH (n:_Neodash_Dashboard) WHERE n.uuid = $uuid RETURN n.content as dashboard'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should manually check that all these operations (dashboard load via share link, dashboard load via sidebar, dashboard load in readonly mode) are all still functional. There's quite some breaking points that we should double check before pushing out the next release.
src/report/Report.tsx
Outdated
|
||
const setRecords = (records) => { | ||
let toSet = records; | ||
if (['table'].includes(type)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this since it's not finished?
Add a todo for later?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah we can do it, but from next release we must start the migration to the new abstracted model
Quality Gate passedIssues Measures |
Detaching the query and authentication logic to a new class