Skip to content

ATLAS-5207: Atlas webapp module to support rest-notification endpoint#622

Open
UmeshPatil-1 wants to merge 24 commits into
apache:masterfrom
UmeshPatil-1:ATLAS-5207
Open

ATLAS-5207: Atlas webapp module to support rest-notification endpoint#622
UmeshPatil-1 wants to merge 24 commits into
apache:masterfrom
UmeshPatil-1:ATLAS-5207

Conversation

@UmeshPatil-1

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

(Please fill in changes proposed in this fix. Create an issue in ASF JIRA before opening a pull request and
set the title of the pull request which starts with
the corresponding JIRA issue number. (e.g. ATLAS-XXXX: Fix a typo in YYY))

How was this patch tested?

(Please explain how this patch was tested. Ex: unit tests, manual tests)
(If this patch involves UI changes, please attach a screenshot; otherwise, remove this)

… rest-notification-webapp in parent pom, replacing the old private SNAPSHOT to map with parent,updated from jersy2->jersy1, Removed Servlet 4.0-only methods that are not on ServletContext in Servlet 3.1 (they were breaking @OverRide) etc
…sses from webapp and rest-notification webapp, updated imports to use server-common module,updated paren pom and xml wiring's etc.
….ServletException and in rest-notification webapp NullServletContext method does not override or implement a method from a supertype, these was because javax.servlet-api 3.1 and there is no support for methods which are using servlet-4.0.
…ebapp and rest-notification-webapp and Updating method visibility to resolve compile time error for UserDaoTest (testMergePasswordAndSalt_EmptySalt) method.
…common module for both webapp and rest-notification webapp.
…rn; align WebappAdminAuditHookTest with long resultCount
…ile-gate test security, split filter beans, Curator only if HA.

####### Atlas REST Notification ###########

atlas.hook.rest.notification.address=http://atlas-rest.example.com:41000/rest

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please comment the rest-notification properties.


####### Atlas REST Notification ###########

atlas.hook.rest.notification.address=http://atlas-rest.example.com:41000/rest

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
* <p>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Class should be RestNotificationHighAvailabilityImpl please check the internal branch class name

import org.springframework.context.annotation.Configuration;

@Configuration
public class AtlasSecurityStateProviderConfig {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Check the internal branch class name AtlasServiceStateProviderConfig

</dependencies>

<build>
<plugins>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please check the build plugins with the internal branch rest-notification pom.xml file.

* Webapp implementation of {@link HighAvailabilitySupport} using {@link HAConfiguration}.
*/
@Component
public class WebappHighAvailabilitySupport implements HighAvailabilitySupport {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Change the name HighAvailabilityImpl, please check the internal code

* and do not rely on {@link org.apache.atlas.RequestContext} during bootstrap.
*/
@Component
public class WebappAdminAuditHook implements ServiceMetricsHook {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please check the internal branch class name ServiceStateChangeAuditHandler and it code

* Bridges {@link ServiceMetricsHook} to {@link AtlasMetricsUtil} in the main webapp.
*/
@Component
public class WebappServiceMetricsHook implements ServiceMetricsHook {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

check the internal code ServiceStateChangeMetricHandler

import org.springframework.context.annotation.Configuration;

@Configuration
public class AtlasSecurityStateProviderConfig {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Class is different in internal branch AtlasServiceStateProviderConfig

hook = new WebappAdminAuditHook(auditService);
}

@Test

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Check this test will fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants