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

Move activity components to plugin-activity #5896

Merged
merged 6 commits into from
Aug 10, 2017

Conversation

mkuznyetsov
Copy link
Contributor

What does this PR do?

Move all workspace activity related code to new plugin-activity:

  • che-plugin-activity-ide
  • che-plugin-activity-server
  • che-plugin-activity-shared
  • che-plugin-activity-wsmaster

Also enable activity tracking with keyboard + mouse in IDE

Add workspace inactive timeout variable to che.env

What issues does this PR fix or reference?

Changelog

Moved all workspace activity related code to new plugin-activity.
Fixed activity tracking with keyboard + mouse in IDE
Added workspace inactive timeout variable to che.env

Release Notes

Docs PR

@@ -11,17 +11,23 @@
Codenvy, S.A. - initial API and implementation

-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
Copy link
Contributor

Choose a reason for hiding this comment

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

is there a reason why the xsd has been renamed ?

Copy link
Contributor Author

@mkuznyetsov mkuznyetsov Aug 4, 2017

Choose a reason for hiding this comment

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

It seems that we have numerous usages of both URLs in different POMs throughout entire Che project for some reason.
And this happened because I was creating this pom by copying from another, which has this different url. I can revert it, but it seems it doesn't matter much, as http://maven.apache.org/maven-v4_0_0.xsd simply redirects to http://maven.apache.org/xsd/maven-4.0.0.xsd

Then one can normalize all poms to use same xsd URL across the project later (as a separate task) if needed.

@codenvy-ci
Copy link

<public path="public"/>

<source path="ide"/>
</module>
Copy link
Contributor

Choose a reason for hiding this comment

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

new line

@@ -0,0 +1,24 @@
/*******************************************************************************
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we don't need this module only for one class with one const

}

private native void init(String restContext, String wsId) /*-{
$wnd.ActivityTracker.init(restContext, wsId);

Choose a reason for hiding this comment

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

Should it be commented?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, that's how native javascript is written in GWT code

Choose a reason for hiding this comment

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

Oh, sorry, I missed that it was a native code

@codenvy-ci
Copy link

# Workspace Idle timeout
# The length of time after which workspaces will be automatically stopped, if no activity
# has been detected on them. Currently, keyboard and mouse interactions in IDE, as well as HTTP
# requests to ws-agent count as activity. Set "0" to disable automatic stop of inactive workspaces
Copy link
Contributor

Choose a reason for hiding this comment

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

please describe default value

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

Copy link
Contributor

@riuvshin riuvshin left a comment

Choose a reason for hiding this comment

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

We need docs update for these changes. @slemeur please help this young padawan

…ctivity

Conflicts:
	plugins/plugin-activity/che-plugin-activity-server/pom.xml
@codenvy-ci
Copy link

@skabashnyuk skabashnyuk merged commit 338773b into eclipse-che:master Aug 10, 2017
@ghost ghost mentioned this pull request Aug 10, 2017
dmytro-ndp pushed a commit to dmytro-ndp/che that referenced this pull request Aug 16, 2017
Move activity components to plugin-activity
@slemeur slemeur added the kind/task Internal things, technical debt, and to-do tasks to be performed. label Sep 28, 2017
@slemeur slemeur added this to the 5.17.0 milestone Sep 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/task Internal things, technical debt, and to-do tasks to be performed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants