Skip to content

Commit

Permalink
CHE-4907 Remove generating of outdated analitycs rel for factories
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergii Leschenko committed Apr 26, 2017
1 parent cdabad5 commit 0ef7141
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ public final class Constants {
public static final String SNIPPET_REL_ATT = "snippet";
public static final String FACTORY_ACCEPTANCE_REL_ATT = "accept";
public static final String NAMED_FACTORY_ACCEPTANCE_REL_ATT = "accept-named";
public static final String ACCEPTED_REL_ATT = "accepted";

// factory snippet types
public static final String MARKDOWN_SNIPPET_TYPE = "markdown";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import static javax.ws.rs.core.MediaType.TEXT_HTML;
import static javax.ws.rs.core.MediaType.TEXT_PLAIN;
import static org.eclipse.che.api.core.util.LinksHelper.createLink;
import static org.eclipse.che.api.factory.shared.Constants.ACCEPTED_REL_ATT;
import static org.eclipse.che.api.factory.shared.Constants.FACTORY_ACCEPTANCE_REL_ATT;
import static org.eclipse.che.api.factory.shared.Constants.IMAGE_REL_ATT;
import static org.eclipse.che.api.factory.shared.Constants.NAMED_FACTORY_ACCEPTANCE_REL_ATT;
Expand Down Expand Up @@ -127,16 +126,6 @@ public static List<Link> createLinks(FactoryDto factory,
TEXT_HTML,
FACTORY_ACCEPTANCE_REL_ATT);
links.add(createWorkspace);
// creation of links for analytics
links.add(createLink(HttpMethod.GET,
uriBuilder.clone()
.path("analytics")
.path("public-metric/factory_used")
.queryParam("factory", createWorkspace.getHref())
.toString(),
null,
TEXT_PLAIN,
ACCEPTED_REL_ATT));
}

if (!Strings.isNullOrEmpty(factory.getName()) && !Strings.isNullOrEmpty(userName)) {
Expand Down

0 comments on commit 0ef7141

Please sign in to comment.