New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SCB-935] Saga transaction management console UI initial commit #317
Conversation
@anvithks After went through the PR, I found you may just copy https://github.com/akveo/ngx-admin/tree/starter-kit code here. I'm not sure if it's best way to do it, but need to make sure it works with Apache License first. |
BTW, we can need to create a module of UI first, then put the compiled js into the static resource directory of the saga-web. |
@WillemJiang sorry for the delayed response. I was on planned vacation and could not check on this. |
I will write an install script for the UI. This script will compile the UI from the source and copy the contents of the dist/ folder in to the static/ folder. |
9f2baae
to
91404b0
Compare
saga-web/src/main/resources/saga-frontend/src/app/@theme/layouts/sample/sample.layout.scss
Outdated
Show resolved
Hide resolved
saga-web/src/main/resources/saga-frontend/src/app/@theme/layouts/sample/sample.layout.ts
Outdated
Show resolved
Hide resolved
saga-web/src/main/resources/saga-frontend/src/assets/data/events.json
Outdated
Show resolved
Hide resolved
91404b0
to
0576a9b
Compare
@WillemJiang after checking the code base of the starter kit and the one in the commit I find that I am using even lesser modules and components than the starter-kit. I have further reduced the LOC by removing some more unused files. |
@anvithks Could you remove the unused file first? |
@WillemJiang It's done. |
@@ -0,0 +1,75 @@ | |||
import { ModuleWithProviders, NgModule, Optional, SkipSelf } from '@angular/core'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to know if this file is generated or write by hand.
If it is write by hand we need to apply the apache License header here.
If not, we should find a right way to specify the license.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the files with appropriate license information.
@anvithks Please add ASF headers to all the files written by you, for format you can refer to https://github.com/apache/servicecomb-service-center/blob/master/frontend/app/index.html#L1 |
@anvithks @asifdxtreme We are plan to do the release of ServiceComb at the end of this month, Please update the License header ASAP. |
saga-web/src/main/resources/saga-frontend/src/app/@core/utils/util.service.ts
Outdated
Show resolved
Hide resolved
saga-web/src/main/resources/saga-frontend/src/app/@theme/layouts/default/default.layout.scss
Outdated
Show resolved
Hide resolved
saga-web/src/main/resources/saga-frontend/src/app/@theme/styles/styles.scss
Show resolved
Hide resolved
@asifdxtreme these are fixed |
@@ -0,0 +1,21 @@ | |||
The MIT License (MIT) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@anvithks We can remove this license now, this will now be added as a part of release/license
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@asifdxtreme This is fixed
@WillemJiang After running RAT tool on this code below are the list of files which shows abnormal license eventhough licenses has been added in *.scss files
Please confirm if we can go ahead with it? |
I think we can leave the json and svg files there, but I'm not sure about the scss files. |
@WillemJiang these scss files have the License but RAT tool is not able to detect it |
@WillemJiang The Rat report after running it on latest changes is here
|
5ddca13
to
4b2b65f
Compare
@@ -1,7 +1,7 @@ | |||
/** | |||
* @license | |||
* Copyright Akveo. All Rights Reserved. | |||
* Licensed under the MIT License. See License.txt in the project root for license information. | |||
* Licensed under the MIT License. See licenses/LICENSE-ngxadmin for license information. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think the reference of LICENSE is clean enough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@WillemJiang lets discuss how best we can do this. I will make the changes as needed in the next PR.
As we need to do some clean up of the saga-pack repo. I merged the PR first, we can polish the License header in another PR. @anvithks Please put the JIRA ID in the comments next for tracking the committer in a better way. |
@WillemJiang Did you mean adding JIRA ID to commit messages or any further comments? |
@anvithks I mean adding the JIRA ID to the first line of commit log, in this way we could grep the committees which is related to the JIRA ID. It's quite useful when we need to cherry pick different patches between different branches. |
Follow this checklist to help us incorporate your contribution quickly and easily:
[SCB-XXX] Fixes bug in ApproximateQuantiles
, where you replaceSCB-XXX
with the appropriate JIRA issue.mvn clean install
to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.//TODO