-
Notifications
You must be signed in to change notification settings - Fork 414
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
Chores/segments, permissions and tags typescript #1930
Conversation
# Conflicts: # frontend/package-lock.json # frontend/package.json
# Conflicts: # frontend/package-lock.json # frontend/package.json
…chores/initial_typescript # Conflicts: # frontend/package-lock.json # frontend/package.json
…ypescript # Conflicts: # frontend/common/dispatcher/action-constants.js # frontend/common/utils/utils.tsx # frontend/web/components/EditPermissions.js # frontend/web/components/modals/CreateSegment.tsx # frontend/web/components/pages/WidgetPage.tsx
…ypescript # Conflicts: # frontend/common/constants.ts # frontend/common/stores/project-store.js # frontend/web/components/pages/SegmentsPage.tsx # frontend/web/components/pages/WidgetPage.tsx
@@ -1,18 +1,30 @@ | |||
import React, {Component, useEffect, useState} from 'react'; |
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.
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.
Added a couple of minor comments on some (possible) typos. I will also do some testing in the Uffizzi environment.
A couple of issues I've found:
Screen.Recording.2023-02-24.at.12.45.36.mov
More details here: #1801 (comment). Note that, even when given view project / view environment permission the blank page / console error persists. |
Something very weirds going on, since the E2E can obviously do this locally and on GH. Checking this out now after all of the conflicts |
# Conflicts: # frontend/common/dispatcher/action-constants.js # frontend/common/dispatcher/app-actions.js # frontend/common/services/useIdentity.ts # frontend/common/types/requests.ts # frontend/common/types/responses.ts # frontend/common/utils/utils.tsx # frontend/web/components/ChipInput.tsx # frontend/web/components/modals/CreateSegment.tsx # frontend/web/components/pages/AuditLogPage.tsx # frontend/web/components/pages/UsersPage.tsx
… chores/segments_typescript
After looking into this, I realised that linting is missing on quite a few files which is how the Permissions import was missed. I'll have to do a follow up PR to resolve that. |
@@ -46,10 +47,6 @@ const FeatureListProvider = class extends React.Component { | |||
AppActions.toggleFlag(i, environments, comment, environmentFlags, projectFlags); | |||
}; | |||
|
|||
setFlag = (i, flag, environments) => { |
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.
Unused / action no longer exists
@@ -44,6 +44,7 @@ module.exports = Object.assign({}, EventEmitter.prototype, { | |||
|
|||
loaded() { | |||
this.hasLoaded = true; | |||
this.error = null; |
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 was causing the datadog widget to appear in the error state after loading
I've adjusted the lint slightly to make the next PR less huge and to rule out any possibility of further missing imports. Excluding superficial spacing lints, it got down to 0 errors. |
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.
@kyle-ssg the two issues above seem to be resolved and I've been through the code again - all looks good to me.
Thanks for submitting a PR! Please check the boxes below:
pre-commit
to check lintingChanges
Please describe.
How did you test this code?
Please describe.