Skip to content

MMS4 Support, Branding Service, Configuration File#141

Merged
dlamoris merged 41 commits intoOpen-MBEE:ve_mms4_backport_osfrom
Enquier:feature/mms4
Dec 13, 2021
Merged

MMS4 Support, Branding Service, Configuration File#141
dlamoris merged 41 commits intoOpen-MBEE:ve_mms4_backport_osfrom
Enquier:feature/mms4

Conversation

@Enquier
Copy link
Contributor

@Enquier Enquier commented Aug 27, 2021

This update adds

  1. A Config file at the root to enable easier microservice/deployment management
  2. Token authentication and MMS4 support (in test)
  3. Branding updates and services for adding banners and login messages.

@lgtm-com
Copy link

lgtm-com bot commented Aug 27, 2021

This pull request introduces 5 alerts and fixes 1 when merging 742072f into 1f70ad2 - view on LGTM.com

new alerts:

  • 2 for Useless assignment to local variable
  • 2 for Unused variable, import, function or class
  • 1 for Useless conditional

fixed alerts:

  • 1 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Sep 1, 2021

This pull request introduces 4 alerts and fixes 1 when merging 87aa4a2 into 1f70ad2 - view on LGTM.com

new alerts:

  • 2 for Useless assignment to local variable
  • 1 for Useless conditional
  • 1 for Unused variable, import, function or class

fixed alerts:

  • 1 for Unused variable, import, function or class

…nto feature/mms4

# Conflicts:
#	Gruntfile.js
#	app/mms.html
#	src/directives/Utils.js
#	src/directives/mmsSpec.js
#	src/directives/mmsTranscludeArt.js
#	src/services/AuthorizationService.js
#	src/services/ElementService.js
#	src/services/ProjectService.js
#	src/services/URLService.js
#	src/services/ViewService.js
@Enquier
Copy link
Contributor Author

Enquier commented Sep 8, 2021

I've now merged and incorporated the changes from the BA branch

@lgtm-com
Copy link

lgtm-com bot commented Sep 8, 2021

This pull request introduces 4 alerts and fixes 2 when merging 4fcfe2e into 1f70ad2 - view on LGTM.com

new alerts:

  • 2 for Useless assignment to local variable
  • 1 for Useless conditional
  • 1 for Unused variable, import, function or class

fixed alerts:

  • 1 for Unused variable, import, function or class
  • 1 for Incomplete string escaping or encoding

@dlamoris dlamoris changed the base branch from develop to ve_mms4_backport_os September 8, 2021 18:43
…mms4

# Conflicts:
#	src/services/AuthorizationService.js
@lgtm-com
Copy link

lgtm-com bot commented Sep 8, 2021

This pull request introduces 4 alerts and fixes 1 when merging 148e657 into 9cccfc9 - view on LGTM.com

new alerts:

  • 2 for Useless assignment to local variable
  • 1 for Useless conditional
  • 1 for Unused variable, import, function or class

fixed alerts:

  • 1 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Sep 21, 2021

This pull request introduces 4 alerts and fixes 1 when merging 13ed472 into 9cccfc9 - view on LGTM.com

new alerts:

  • 2 for Useless assignment to local variable
  • 1 for Useless conditional
  • 1 for Unused variable, import, function or class

fixed alerts:

  • 1 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Sep 21, 2021

This pull request introduces 4 alerts and fixes 1 when merging 50e0f91 into 9cccfc9 - view on LGTM.com

new alerts:

  • 2 for Useless assignment to local variable
  • 1 for Useless conditional
  • 1 for Unused variable, import, function or class

fixed alerts:

  • 1 for Unused variable, import, function or class

@Enquier
Copy link
Contributor Author

Enquier commented Sep 21, 2021

This is now tested and working to the same level as the BA branch. I also backed out most of the OMG specific changes

@Enquier
Copy link
Contributor Author

Enquier commented Sep 21, 2021

There is an open issue which will throw errors on user lookup until Open-MBEE/exec-mms#173 is merged and deployed

@lgtm-com
Copy link

lgtm-com bot commented Sep 21, 2021

This pull request introduces 4 alerts and fixes 1 when merging c3c4848 into 9cccfc9 - view on LGTM.com

new alerts:

  • 2 for Useless assignment to local variable
  • 1 for Useless conditional
  • 1 for Unused variable, import, function or class

fixed alerts:

  • 1 for Unused variable, import, function or class

Copy link
Collaborator

@dlamoris dlamoris left a comment

Choose a reason for hiding this comment

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

first pass, main thing is using the http interceptor instead of passing headers for each call, also with the ckeditor upgrade i don't remember if there's anything else we do, i think the config file was commented out because it depends on where ve actually gets deployed, stuff in there may be incorporated into the directive? guess we'll see

controller: 'ToolbarCtrl'
},
'footer@': {
template: '<ve-footer mms-footer="footer" ng-if="ve_footer"></ve-footer>',
Copy link
Collaborator

Choose a reason for hiding this comment

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

i think ve_footer gets set at rootscope? not sure if it's supposed to use env file or other stuff?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ve-footer is now a separate controller which is why it's set there

url: '/document/:documentId',
resolve: {
documentOb: ['$stateParams', '$q', 'ElementService', 'ViewService', 'refOb', 'ticket', function($stateParams, $q, ElementService, ViewService, refOb, ticket) {
projectOb: ['$stateParams', 'ProjectService', 'token', function($stateParams, ProjectService, token) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

this would have just inherited from parent state, i don't think it's needed here, only needs to be redefined if it's to overwrite parent state's object

// }
// return deferred.promise;
// };
var getMetatypes = function(projectId, refId) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

none of these will work since there's no more pure elastic query for search

ticket = t;
};

var getAuthorizationHeaderValue = function() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

these were needed by the http interceptor

* @param {string} site Site name (not title!).
* @returns {string} The path for site dashboard.
*/
var getSiteDashboardURL = function(site) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is no longer relevant

deferred.resolve(success.data.username);
URLService.setToken(token);
$http.get(URLService.getCheckTokenURL(),URLService.getRequestConfig()).then(function (success) {
deferred.resolve(success.data);
Copy link
Collaborator

Choose a reason for hiding this comment

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

was whatever is calling this handling the changed data accordingly?


var getLogoutURL = function() {
return root + '/api/login/ticket/' + ticket;
var getCheckTokenURL = function(t) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

i think there's a bunch of duplicates of this now - i've seen checkLogin, checkToken, checkSession

@Enquier
Copy link
Contributor Author

Enquier commented Sep 24, 2021

Thanks Doris. I think the interception differential was due to my older changes and me not being aware of it. I’ll make that change and look at the others on Monday

@lgtm-com
Copy link

lgtm-com bot commented Sep 30, 2021

This pull request introduces 4 alerts and fixes 1 when merging 48d44c0 into 9cccfc9 - view on LGTM.com

new alerts:

  • 2 for Useless assignment to local variable
  • 1 for Useless conditional
  • 1 for Unused variable, import, function or class

fixed alerts:

  • 1 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Sep 30, 2021

This pull request introduces 6 alerts and fixes 1 when merging 8a7a778 into 9cccfc9 - view on LGTM.com

new alerts:

  • 3 for Unused variable, import, function or class
  • 2 for Useless assignment to local variable
  • 1 for Useless conditional

fixed alerts:

  • 1 for Unused variable, import, function or class

@@ -0,0 +1,16 @@
'use strict';
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think this service is used anywhere

elements: [postElem],
source: ApplicationService.getSource()
}, {timeout: 60000})
}, Object.assign({timeout: 60000}))
Copy link
Collaborator

Choose a reason for hiding this comment

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

not sure why object.assign is added

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Leftover from when I added headers at that point rather than in the interceptor

@@ -0,0 +1,40 @@
(function (window) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

i tried deploying it, i think the window arg and 'this' at the end are messing it up (undefined), should be fine if they're just taken out

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will not work for me without those statements. Lets setup some time to talk about it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have committed the necessary changes

@dlamoris
Copy link
Collaborator

this version is on https://opencae-uat.jpl.nasa.gov/mms4ve/mms.html currently, talking to cae-mms-uat-lb.jpl.nasa.gov

@lgtm-com
Copy link

lgtm-com bot commented Oct 11, 2021

This pull request introduces 6 alerts and fixes 1 when merging 09016a2 into 9cccfc9 - view on LGTM.com

new alerts:

  • 3 for Unused variable, import, function or class
  • 2 for Useless assignment to local variable
  • 1 for Useless conditional

fixed alerts:

  • 1 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Oct 11, 2021

This pull request introduces 6 alerts and fixes 1 when merging 5ebb561 into 9cccfc9 - view on LGTM.com

new alerts:

  • 3 for Unused variable, import, function or class
  • 2 for Useless assignment to local variable
  • 1 for Useless conditional

fixed alerts:

  • 1 for Unused variable, import, function or class

@dlamoris dlamoris merged commit ad627e1 into Open-MBEE:ve_mms4_backport_os Dec 13, 2021
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.

3 participants