[jbosstools-issues] [JBoss JIRA] (JBIDE-23184) Add Capability to Watch Projects

Dmitrii Bocharov (JIRA) issues at jboss.org
Wed Nov 16 06:54:00 EST 2016


    [ https://issues.jboss.org/browse/JBIDE-23184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13323609#comment-13323609 ] 

Dmitrii Bocharov commented on JBIDE-23184:
------------------------------------------

[~mlabuda] if i understand you right, that's a correct behavior.
All resources are tied to Project. It's a workspace for all of them. So project (not a connection) is a starting point to watch the resources.  That's why when you create the project via oc binary, we are not yet assigned for watching changed in project, because we have no information about it. That's why you need to refresh the connection to let OS explorer know about the project and it will create this "starting point" for watching.

I think if we want the watch process to start from connection, it would require a huge refactoring, but i might be wrong.
[~jcantrill] [~adietish] [~jeffmaury] what do you think?

> Add Capability to Watch Projects
> --------------------------------
>
>                 Key: JBIDE-23184
>                 URL: https://issues.jboss.org/browse/JBIDE-23184
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: openshift
>            Reporter: Jeff Cantrill
>            Assignee: Dmitrii Bocharov
>             Fix For: 4.4.2.AM3
>
>
> Origin now allows watching of projects for adds and delete.  Add capability to watch projects.  Need to take into consideration how one might use the latest code against an older server version since older servers did not support project watch
> $ curl -k -H "Authorization: Bearer LU3A1EyTOdnRhkLqe8Gqkgk850eTNlljz18NwLA-108" https://192.168.1.13:8443/oapi/v1/projects?watch=true&&resourceVersion=
> {"type":"ADDED","object":{"kind":"Project","apiVersion":"v1","metadata":{"name":"foo","selfLink":"/oapi/v1/projects/foo","uid":"41f418fc-7ea3-11e6-803b-507b9dfa4ab3","resourceVersion":"942","creationTimestamp":"2016-09-19T19:57:13Z","annotations":{"openshift.io/description":"","openshift.io/display-name":"","openshift.io/requester":"developer","openshift.io/sa.scc.mcs":"s0:c7,c4","openshift.io/sa.scc.supplemental-groups":"1000050000/10000","openshift.io/sa.scc.uid-range":"1000050000/10000"}},"spec":{"finalizers":["openshift.io/origin","kubernetes"]},"status":{"phase":"Active"}}}
> {"type":"DELETED","object":{"kind":"Project","apiVersion":"v1","metadata":{"name":"foo","selfLink":"/oapi/v1/projects/foo","creationTimestamp":null},"spec":{},"status":{}}}
> openshift-origin PR that made it available: https://github.com/openshift/origin/pull/6828



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jbosstools-issues mailing list