mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-26 06:53:37 +00:00
Remove authorizer for the collect endpoint (#8398)
This commit is contained in:
parent
c74d5a9b18
commit
f027c26cc1
@ -6,7 +6,6 @@ import java.io.IOException;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
import javax.ws.rs.core.Response;
|
||||
import javax.ws.rs.core.UriInfo;
|
||||
import org.jdbi.v3.sqlobject.transaction.Transaction;
|
||||
import org.openmetadata.schema.EntityInterface;
|
||||
import org.openmetadata.schema.analytics.WebAnalyticEvent;
|
||||
@ -74,10 +73,8 @@ public class WebAnalyticEventRepository extends EntityRepository<WebAnalyticEven
|
||||
}
|
||||
|
||||
@Transaction
|
||||
public Response addWebAnalyticEventData(UriInfo uriInfo, WebAnalyticEventData webAnalyticEventData)
|
||||
throws IOException {
|
||||
public Response addWebAnalyticEventData(WebAnalyticEventData webAnalyticEventData) throws IOException {
|
||||
webAnalyticEventData.setEventId(UUID.randomUUID());
|
||||
WebAnalyticEvent webAnalyticEvent = dao.findEntityByName(webAnalyticEventData.getEventType().value());
|
||||
daoCollection
|
||||
.entityExtensionTimeSeriesDao()
|
||||
.insert(
|
||||
|
||||
@ -384,8 +384,7 @@ public class WebAnalyticEventResource extends EntityResource<WebAnalyticEvent, W
|
||||
@Context SecurityContext securityContext,
|
||||
@Valid WebAnalyticEventData webAnalyticEventData)
|
||||
throws IOException {
|
||||
authorizer.authorizeAdmin(securityContext);
|
||||
return dao.addWebAnalyticEventData(uriInfo, webAnalyticEventData);
|
||||
return dao.addWebAnalyticEventData(webAnalyticEventData);
|
||||
}
|
||||
|
||||
@GET
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user