Skip to content
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

Feature/infra proxy pipeline #6617

Conversation

GorillaGigabytes
Copy link
Contributor

@GorillaGigabytes GorillaGigabytes commented Jan 25, 2022

🔩 Description: What code changed, and why?

Create a Demo pipeline for extraction and parsing of zip file and saving all the required info into the db.

⛓️ Related Resources

Migration Data Service, upload of zip file

#6562
#6563

👍 Definition of Done

Gat a demo pipeline ready which communicates using channels, from extraction of a zip file to storage all the info to the database.

👟 How to Build and Test the Change

rebuild components/infra-proxy-service/

Only Unzip routine is working flawlessly, and rest of the function, routines needs to be updated with actual data to test and run.

✅ Checklist

All PRs must tick these:

With occasional exceptions, all PRs from Progress employees must tick these:

  • Is the code clear? (complicated code or lots of comments--subdivide and use well-named methods, meaningful variable names, etc.)
  • Consistency checked? (user notifications, user prompts, visual patterns, code patterns, variable names)
  • Repeated code blocks eliminated? (adapt and reuse existing components, blocks, functions, etc.)
  • Spelling, grammar, typos checked? (at a minimum use make spell in any component directory)
  • Code well-formatted? (indents, line breaks, etc. improve rather than hinder readability)

All PRs from Progress employees should tick these if appropriate:

  • Tests added/updated? (all new code needs new tests)
  • Docs added/updated? (all customer-facing changes)

Please add a note next to any checkbox above if you are NOT ticking it.

📷 Screenshots, if applicable

sonali523 and others added 23 commits January 27, 2022 12:34
* Script added for table 'users'

Signed-off-by: root <swale@msystechnologies.com>

* updated down script

Signed-off-by: root <swale@msystechnologies.com>

* updated up script

Signed-off-by: root <swale@msystechnologies.com>

* updated up script

Signed-off-by: root <swale@msystechnologies.com>
Signed-off-by: Abdul-Az <aazeez@progress.com>
…hen doing builds (#5741)

Signed-off-by: Rick Marry <rmarry@chef.io>
Signed-off-by: root <swale@msystechnologies.com>
Signed-off-by: Abdul-Az <aazeez@progress.com>
* Storage functions added for users table

Signed-off-by: root <swale@msystechnologies.com>

* Updated with review comments

Signed-off-by: root <swale@msystechnologies.com>
* converted server modal into slider

Signed-off-by: chaitali-mane <cmane@progress.com>

* Updated test cases

Signed-off-by: chaitali-mane <cmane@progress.com>
Signed-off-by: Abdul-Az <aazeez@progress.com>
Signed-off-by: Abdul-Az <aazeez@progress.com>
Signed-off-by: Abdul-Az <aazeez@progress.com>
* converted server modal into slider

Signed-off-by: chaitali-mane <cmane@progress.com>

* Updated test cases

Signed-off-by: chaitali-mane <cmane@progress.com>
Signed-off-by: Abdul-Az <aazeez@progress.com>
Signed-off-by: Abdul-Az <aazeez@progress.com>
* added some changes for the create server slider

Signed-off-by: Vinay Sharma <vsharma@chef.io>

* added some minor changes

Signed-off-by: Vinay Sharma <vsharma@chef.io>
Signed-off-by: Abdul-Az <aazeez@progress.com>
Signed-off-by: Abdul-Az <aazeez@progress.com>
Signed-off-by: Abdul-Az <aazeez@progress.com>
Signed-off-by: root <swale@msystechnologies.com>
* Added Users tab UI

Signed-off-by: chaitali-mane <cmane@progress.com>

* Added enitites api integration

Signed-off-by: chaitali-mane <cmane@progress.com>

* minor changes

Signed-off-by: chaitali-mane <cmane@progress.com>

* Updated minor change

Signed-off-by: chaitali-mane <cmane@progress.com>
Signed-off-by: Himanshi Chhabra <hchhabra@progress.com>
* Shell script added to add the sample infra server users

Signed-off-by: root <swale@msystechnologies.com>

* Minor changes added

Signed-off-by: root <swale@msystechnologies.com>
Signed-off-by: Kallol Roy <karoy@progress.com>
Signed-off-by: Abdul-Az <aazeez@progress.com>
sonali523 and others added 19 commits January 27, 2022 12:34
* Get organisation of infra server from chef server API added

Signed-off-by: sonali wale <swale@msystechnologies.com>

* minor changes added

Signed-off-by: sonali wale <swale@msystechnologies.com>

* Test cases added

Signed-off-by: sonali wale <swale@msystechnologies.com>

* Changes added in test cases

Signed-off-by: sonali wale <swale@msystechnologies.com>

* Added some changes in test cases

Signed-off-by: sonali wale <swale@msystechnologies.com>

* Removed test cases to check the existing one

Signed-off-by: sonali wale <swale@msystechnologies.com>

* added test cases changes

Signed-off-by: sonali wale <swale@msystechnologies.com>

* incorporating review comments

Signed-off-by: sonali wale <swale@msystechnologies.com>

* Minor changes added in test cases

Signed-off-by: sonali wale <swale@msystechnologies.com>

* added some logs

Signed-off-by: sonali wale <swale@msystechnologies.com>

* changes added in test cases

Signed-off-by: sonali wale <swale@msystechnologies.com>

* test cases changes added

Signed-off-by: sonali wale <swale@msystechnologies.com>

* Fixes added for repo health status

Signed-off-by: sonali wale <swale@msystechnologies.com>

* Fix added for repo health failure

Signed-off-by: sonali wale <swale@msystechnologies.com>

* Changes added in bash script of add users to remove credential id from users table

Signed-off-by: sonali wale <swale@msystechnologies.com>

* Conflicts resolved

Signed-off-by: sonali wale <swale@msystechnologies.com>
…ey (#6440)

* added changes to update the webui key on server details page

Signed-off-by: Vinay Sharma <vsharma@chef.io>

* added some minor changes

Signed-off-by: Vinay Sharma <vsharma@chef.io>
…ta (#6435)

* changes for the validate webui key on server details page

Signed-off-by: Vinay Sharma <vsharma@chef.io>

* added chanegs for the validate webui key

Signed-off-by: Vinay Sharma <vsharma@chef.io>

* added changes for the specs

Signed-off-by: Vinay Sharma <vsharma@chef.io>

* added changes for the validate webui key error effect

Signed-off-by: Vinay Sharma <vsharma@chef.io>
* Update web ui key API added

Signed-off-by: sonali wale <swale@msystechnologies.com>

* Removed extra files

Signed-off-by: sonali wale <swale@msystechnologies.com>

* Read secret changes added

Signed-off-by: sonali wale <swale@msystechnologies.com>

* Conflicts resolved

Signed-off-by: sonali wale <swale@msystechnologies.com>

* Test cases added

Signed-off-by: sonali wale <swale@msystechnologies.com>

* Commented validate web ui key test cases

Signed-off-by: sonali wale <swale@msystechnologies.com>

* Changes added in mock file

Signed-off-by: sonali wale <swale@msystechnologies.com>

* uncomment validate web ui key test cases

Signed-off-by: sonali wale <swale@msystechnologies.com>
Signed-off-by: Abdul-Az <aazeez@progress.com>
* editor actions added

Signed-off-by: Abdul-Az <aazeez@progress.com>

* infra_editor test cases

Signed-off-by: Abdul-Az <aazeez@progress.com>

* test cases fix

Signed-off-by: Abdul-Az <aazeez@progress.com>
…Policy Files, Policy Groups, Clients (#6457)

* Changes added to use the web ui key

Signed-off-by: sonali wale <swale@msystechnologies.com>

* added minor UI change

Signed-off-by: Chaitali Mane <cmane@progress.com>

Co-authored-by: Chaitali Mane <cmane@progress.com>
* Script added for migration tables

Signed-off-by: sonali wale <sonali.wale@progress.com>

* Insert scripts added for migration type and status

Signed-off-by: sonali wale <sonali.wale@progress.com>

* Server id column added in migration table

Signed-off-by: sonali wale <sonali.wale@progress.com>

* Index added on server_id column in migration table

Signed-off-by: sonali wale <sonali.wale@progress.com>
* editor actions added

Signed-off-by: Abdul-Az <aazeez@progress.com>

* infra_editor test cases

Signed-off-by: Abdul-Az <aazeez@progress.com>

* test cases fix

Signed-off-by: Abdul-Az <aazeez@progress.com>

* infra editor actions update

Signed-off-by: Abdul-Az <aazeez@progress.com>

* editor role fix

Signed-off-by: Abdul-Az <aazeez@progress.com>

* test cases fix

Signed-off-by: Abdul-Az <aazeez@progress.com>
* project owner wip

Signed-off-by: Abdul-Az <aazeez@progress.com>

* project owner actions

Signed-off-by: Abdul-Az <aazeez@progress.com>

* fix

Signed-off-by: Abdul-Az <aazeez@progress.com>

* doc update

Signed-off-by: Abdul-Az <aazeez@progress.com>

* pipeline fix

Signed-off-by: Abdul-Az <aazeez@progress.com>
* Updated cypress tests for web ui key

Signed-off-by: Chaitali Mane <cmane@progress.com>

* Key in uppercase

Signed-off-by: Chaitali Mane <cmane@progress.com>

* Update for minor

Signed-off-by: Chaitali Mane <cmane@progress.com>

* removed unused lines

Signed-off-by: Chaitali Mane <cmane@progress.com>

* removed error unit tests

Signed-off-by: Chaitali Mane <cmane@progress.com>

* removed iam lint error

Signed-off-by: Chaitali Mane <cmane@progress.com>

* Adding Cypress env variable for WebUI key

Signed-off-by: Kallol Roy <karoy@progress.com>

* Updated variable

Signed-off-by: Chaitali Mane <cmane@progress.com>

* removed replace

Signed-off-by: Chaitali Mane <cmane@progress.com>

* Adding variable

Signed-off-by: Chaitali Mane <cmane@progress.com>

* minor change

Signed-off-by: Chaitali Mane <cmane@progress.com>

* removed hard coded values

Signed-off-by: Chaitali Mane <cmane@progress.com>

* Removed hard coded values

Signed-off-by: Chaitali Mane <cmane@progress.com>

* Updated variables

Signed-off-by: Chaitali Mane <cmane@progress.com>

Co-authored-by: Kallol Roy <karoy@progress.com>
Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>
* updated docs

Signed-off-by: Abdul-Az <aazeez@progress.com>

* cypress error fix

Signed-off-by: Abdul-Az <aazeez@progress.com>

* lint fixes

Signed-off-by: Abdul-Az <aazeez@progress.com>

* updated docs

Signed-off-by: Abdul-Az <aazeez@progress.com>

* cypress error fix

Signed-off-by: Abdul-Az <aazeez@progress.com>

* Added button as per new design

Signed-off-by: Chaitali Mane <cmane@progress.com>

* update change

Signed-off-by: Chaitali Mane <cmane@progress.com>

Co-authored-by: Abdul-Az <aazeez@progress.com>
Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>
* Get organisation API changes added

Signed-off-by: sonali wale <sonali.wale@progress.com>

* minor changes added

Signed-off-by: sonali wale <sonali.wale@progress.com>

* Remove command to create an orgs

Signed-off-by: sonali wale <sonali.wale@progress.com>

* Client Mock changes

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

* Storage function for all the phases of migration

Signed-off-by: sonali wale <sonali.wale@progress.com>

* Minor changes added

Signed-off-by: sonali wale <sonali.wale@progress.com>

* Incorporated review comments

Signed-off-by: sonali wale <sonali.wale@progress.com>

* Minor changes added

Signed-off-by: sonali wale <sonali.wale@progress.com>

* Changes for review comments

Signed-off-by: sonali wale <sonali.wale@progress.com>

* Comments removed

Signed-off-by: sonali wale <sonali.wale@progress.com>

Co-authored-by: Yashvi Jain <Yashvi.jain@progress.com>
Signed-off-by: sonali wale <sonali.wale@progress.com>
* resolving conflicts and rebasing it

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

* Removing the loggers

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

* Query changes for lastes migration status

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

* changing the response varibale

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>
* added changes for infra proxy audit log

* added reflect codes

Signed-off-by: Kallol Roy <karoy@progress.com>

* added changes for the audit logs for infra

Signed-off-by: Vinay Sharma <vsharma@chef.io>

* removed commented code

Signed-off-by: Vinay Sharma <vsharma@chef.io>

* added some minor changes

Signed-off-by: Vinay Sharma <vsharma@chef.io>

Co-authored-by: Kallol Roy <karoy@progress.com>
…ip file (#6612)

* Changes for stream api for upload

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

* changes

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

* added some changes for the protofile

Signed-off-by: Vinay Sharma <vsharma@chef.io>

* added function changes

* added changes for the proto

* added changes to devide the chunks in bytes

* added changes for the validation

Signed-off-by: Vinay Sharma <vsharma@chef.io>

* adding status in database

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

* adding the request for server id and filename

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

* Adding  loggers and saving the failed migration phase

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

* optimising the code

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

* Changes for content-type

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

* added changes for the validation

Signed-off-by: Vinay Sharma <vsharma@chef.io>

* Upload to the hab svc data folder

Signed-off-by: Kallol Roy <karoy@progress.com>

* Enhance log and modify migration phases

Signed-off-by: Kallol Roy <karoy@progress.com>

* Granularize the migration stages

Signed-off-by: Kallol Roy <karoy@progress.com>

* Granularize the migration stages

Signed-off-by: Kallol Roy <karoy@progress.com>

Co-authored-by: Vinay Sharma <vsharma@chef.io>
Co-authored-by: Kallol Roy <karoy@progress.com>
@vinay033 vinay033 force-pushed the feature/infra_user_management branch from a3618d2 to 7fda7f0 Compare January 27, 2022 07:04
Pappu Kumar added 2 commits January 28, 2022 13:38
Signed-off-by: Pappu Kumar <pappu.kumar@progress.com>
Signed-off-by: Pappu Kumar <pappu.kumar@progress.com>
Pappu Kumar and others added 2 commits January 28, 2022 13:41
Signed-off-by: Pappu Kumar <pappu.kumar@progress.com>
Signed-off-by: Kallol Roy <karoy@progress.com>
@sonarcloud
Copy link

sonarcloud bot commented Jan 28, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@vinay033 vinay033 force-pushed the feature/infra_user_management branch from 19df40a to 15dafca Compare January 31, 2022 17:54
@GorillaGigabytes
Copy link
Contributor Author

I have raised a different PR hence closing this one

@GorillaGigabytes GorillaGigabytes deleted the feature/infra_proxy_pipeline branch February 16, 2022 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automate-infra-proxy-api using for automate infra proxy backend api's infra-user-mgnt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants