-
Notifications
You must be signed in to change notification settings - Fork 1
Che plugin viewer first working model #1
base: master
Are you sure you want to change the base?
Conversation
@sunilk747 can you confirm that you have all copyrights for all content that you are submitting(images, resources, etc)? |
@sunilk747 let me know when you want to merge your work? |
@evidolob can you take a look. I need some node/UI experts to take a look. |
3e49543
to
c7dbed3
Compare
@skabashnyuk Feel free to merge this PR. |
Hello, quick review feedback:
|
cc @benoitf Can you review this pull request? |
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.
- no copyright
- no license in images
- fonts should come through node modules
- should use typescript as all of the other che projects
- lot more comments inline
yum clean all && \ | ||
sed -i 's/listen[[:space:]]*80;/listen 8080;/' /etc/nginx/conf.d/default.conf | ||
|
||
RUN chmod 777 /var/log/nginx && chmod 777 /var/cache/nginx && chmod 777 /var/run && rm -rf /var/log/nginx/* && rm -rf /var/cache/nginx/* |
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.
this run instruction should be merged with previous one (to not duplicate size of layers)
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.
still pending comment
&& yarn install && yarn build | ||
|
||
EXPOSE 8080 | ||
CMD ["nginx", "-g", "daemon off;"] |
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.
if this dockerfile is for production, it should be a multi stage build (yarn tool should not be in production image)
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.
not solved yet. Should be fixed to be approved
@sunilk747 in eclipse-che/che-plugin-registry#72 I thought you were working on writing it in typescript and you were expecting to get done last week. |
@slemeur No. I guess there is a miscommunication here. Nobody told me to redo the whole thing in typescript. The work that I have been expecting to get done is some UI changes not redoing the whole project in TS. |
Yeah that should have been clarified. But I agree that it's sad that it's not in typescript as we are using it in the whole Che stack. |
@slemeur Yeah, it should have been clarified. I was told to reuse this project - https://github.com/jeff-phillips-18/catalog-test-app which is in JS that's why I didn't change anything. We can redo the whole project in typescript + react. Considering it's a small project I guess it can be one in one sprint task. |
7967de8
to
7816f51
Compare
dffa8b4
to
429dbb2
Compare
462a389
to
b7b17e3
Compare
b7b17e3
to
80a8dd4
Compare
@benoitf Could you please review it again. |
|
@benoitf PTAL. |
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.
removing approval to take a look after all changes will be merged
removing approval to take a look after all changes will be merged
these changes are blocker:
About copyright, do you own all the code that is there ? if yes, please use Eclipse Public License v2
The question is not what license you should add, but from where coming these images and the license they have, to see if they're matching their use in a EPLv2 project.
I think it's the basis of JS development. Basic idea is to not add any binaries inside the repositories. Only source code. Fonts are dependencies then they should come through npm. here is a tiny sample with font-awesome but approach is the same with other fonts |
@@ -0,0 +1,252 @@ | |||
/** |
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.
still invalid copyright headers
@@ -0,0 +1,27 @@ | |||
import React from 'react'; |
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.
missing copyright headers
Red Hat, Inc. - initial implementation | ||
*/ | ||
|
||
import axios from 'axios'; |
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.
name should not use any camelCase
pluginsApi --> plugins-api.js
camel case is not working good across Windows/Linux/Macos usually
let data = []; | ||
return await axios.get(process.env.REACT_APP_REGISTRY_URL).then(async response => { | ||
for (let i = 0; i < response.data.length; i++) { | ||
let url = 'https://che-plugin-registry.openshift.io' + response.data[i].links.self; |
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.
registry URL should be a parameter
@@ -0,0 +1,94 @@ | |||
import * as _ from 'lodash-es'; |
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.
copyright headers
REJECTED_ACTION | ||
}; | ||
|
||
export default helpers; |
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.
missing EOF
@@ -0,0 +1,117 @@ | |||
/* eslint-disable react/no-did-update-set-state */ |
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.
headers...
<div className="catalog-modal__item catalog-modal__description"> | ||
<div key="desc"> | ||
<Alert type="info" onDismiss={infoDismissed}> | ||
Go to Eclipse che dashboard then select workspace. |
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.
Eclipse Che
@@ -0,0 +1,627 @@ | |||
/* eslint-disable react/no-did-update-set-state */ |
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.
--> catalog-view.js
missing headers
@@ -0,0 +1,80 @@ | |||
import React from 'react'; |
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.
rename file + headers
@@ -0,0 +1,113 @@ | |||
import React from 'react'; |
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.
rename file + headers
@@ -0,0 +1,168 @@ | |||
import React from 'react'; |
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.
copyright headers
@@ -0,0 +1,30 @@ | |||
import * as React from 'react'; |
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.
rename file + copyright headers
import { fetchCatalogItems } from '../../redux/actions/catalogActions'; | ||
import { helpers } from '../../common/helpers'; | ||
|
||
class CatalogC extends React.Component { |
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.
please use a meaningful name for this class.
CatalogC is not so meaningful
also rename to not use camelCase and add copyright headers
@@ -0,0 +1,233 @@ | |||
import * as _ from 'lodash-es'; |
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.
why do we need this external lodash library ?
most of the code is available on ES6. (like forEach, map, etc)
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.
can't comment on diff as it's binaries:
- what is the favicon.ico ? looks like react icon
- names of scr1.png and scr2.png are not meaningful. Also I'm unsure if screenshots are required there
|
@sunilk747 is this pr ready to be reviewed again? As far as I can see not all of @benoitf 's comments answered. Can you describe your vision of this task? |
@skabashnyuk I was a bit busy with other tasks I have in this sprint. I will try to handle other comments as soon as possible. |
What does this PR do?
First commit for che plugin viewer.