-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Removed outdated code related to web analytics #8755
Conversation
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThe changes in this pull request involve modifications to the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant CVATApp
participant History
User->>CVATApp: Interacts with application
CVATApp->>History: Listen for location changes
History-->>CVATApp: Location change detected
CVATApp->>CVATApp: Handle new location
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (3)
Dockerfile.ui
(0 hunks)cvat-ui/src/components/cvat-app.tsx
(1 hunks)cvat-ui/src/utils/environment.ts
(1 hunks)
💤 Files with no reviewable changes (1)
- Dockerfile.ui
✅ Files skipped from review due to trivial changes (1)
- cvat-ui/src/utils/environment.ts
🔇 Additional comments (2)
cvat-ui/src/components/cvat-app.tsx (2)
Line range hint 144-193
: LGTM: Web analytics code removal
The changes appropriately remove web analytics tracking while maintaining essential navigation functionality.
Line range hint 516-673
: LGTM: Routing logic remains intact
The routing implementation maintains all necessary paths and authentication flows while removing analytics-related code.
@@ -142,7 +141,7 @@ class CVATApplication extends React.PureComponent<CVATAppProps & RouteComponentP | |||
|
|||
public componentDidMount(): void { | |||
const core = getCore(); | |||
const { history, location, onChangeLocation } = this.props; | |||
const { history, onChangeLocation } = this.props; |
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.
Potential bug: Inconsistent prop usage
The location
prop is removed from destructuring but is still used elsewhere in the component. This could lead to runtime errors.
Verify all usages of the location
prop and ensure consistent handling:
#!/bin/bash
# Search for all usages of 'location' prop in the component
ast-grep --pattern 'location' cvat-ui/src/components/cvat-app.tsx
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #8755 +/- ##
========================================
Coverage 73.92% 73.92%
========================================
Files 409 409
Lines 43932 43925 -7
Branches 3984 3983 -1
========================================
- Hits 32477 32472 -5
+ Misses 11455 11453 -2
|
Co-authored-by: Andrey Zhavoronkov <andrey@cvat.ai>
Motivation and context
How has this been tested?
Checklist
develop
branch(cvat-canvas,
cvat-core,
cvat-data and
cvat-ui)
License
Feel free to contact the maintainers if that's a concern.
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
Chores