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

Setup script doesn't handle Docker intuitively #2270

Closed
palisadoes opened this issue Apr 28, 2024 · 41 comments
Closed

Setup script doesn't handle Docker intuitively #2270

palisadoes opened this issue Apr 28, 2024 · 41 comments
Assignees
Labels
bug Something isn't working no-issue-activity No issue activity

Comments

@palisadoes
Copy link
Contributor

palisadoes commented Apr 28, 2024

Describe the bug

  1. The setup script doesn't
    1. remember whether the user running the script previously answered Y to this question:
      Are you setting up this project using Docker? (y/N)
      
    2. doesn't detect whether docker is running the application and if so doesn't prompt the user to import the sample data. This means that the user has to refer to INSTALLATION.md and manually do the importation. This is not a good user experience.

To Reproduce

Steps to reproduce the behavior:

  1. Run the setup script, select Docker
  2. You never get prompted for data import if docker is running the application
  3. The script doesn't store your previous Docker related answers

Expected behavior

  1. Run the setup script, select Docker
  2. Get prompted for data import if docker is running the application
  3. The script stores your previous Docker related answers
  4. Sample data is correctly imported
  5. Update INSTALLATION.md to:
    1. let people know that after starting docker for the first time that they should run the installation script again
    2. show people how to install sample data from the CLI when docker is being used.
  6. There must be a docker specific way to manually import data successfully with appropriate errors if it fails.
  7. The existing non-docker data importation script must fail with an appropriate error if the non-docker API instance and database is not. It does not do that now. Docker can be running and the non-docker data importation runs without failing or giving appropriate messaging.
  8. Tests are written to ensure the script always has the newly desired behavior

Actual behavior

  • See above

Screenshots

image

Additional details

  • N/A

Potential internship candidates

Please read this if you are planning to apply for a Palisadoes Foundation internship

@palisadoes palisadoes added the bug Something isn't working label Apr 28, 2024
@github-actions github-actions bot added question Further information is requested unapproved Unapproved for Pull Request labels Apr 28, 2024
@palisadoes palisadoes removed the question Further information is requested label Apr 28, 2024
@varshith257
Copy link
Member

@palisadoes I would like to work on this issue

@palisadoes
Copy link
Contributor Author

@varshith257 are you still able to work on this?

Copy link

This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue.

@github-actions github-actions bot added the no-issue-activity No issue activity label May 18, 2024
@palisadoes
Copy link
Contributor Author

  1. Inactive, unassigning
  2. Are you still working on this?

@github-actions github-actions bot removed the no-issue-activity No issue activity label May 20, 2024
Copy link

This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue.

@github-actions github-actions bot added the no-issue-activity No issue activity label May 30, 2024
@varshith257 varshith257 self-assigned this Jun 13, 2024
@varshith257 varshith257 removed unapproved Unapproved for Pull Request no-issue-activity No issue activity labels Jun 13, 2024
@varshith257
Copy link
Member

Assigning myself as a first priority issue to solve
cc/ @palisadoes @Cioppolo14

Copy link

This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue.

@github-actions github-actions bot added the no-issue-activity No issue activity label Jun 24, 2024
@varshith257
Copy link
Member

varshith257 commented Jun 24, 2024 via email

@github-actions github-actions bot removed the no-issue-activity No issue activity label Jun 25, 2024
Copy link

github-actions bot commented Jul 5, 2024

This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue.

@github-actions github-actions bot added the no-issue-activity No issue activity label Jul 5, 2024
@varshith257
Copy link
Member

Working with @Cioppolo14

@github-actions github-actions bot removed the no-issue-activity No issue activity label Jul 6, 2024
Copy link

This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue.

@github-actions github-actions bot added the no-issue-activity No issue activity label Jul 16, 2024
@zakhaev26
Copy link

zakhaev26 commented Oct 7, 2024

@palisadoes While reviewing the setup.ts script, particularly in the sections configuring environment variables, I noticed that the isDockerInstallation flag introduces a separate program flow. However, when I remove the isDockerInstallation checks, the output behaves as expected, specifically prompting the user to import data even in Docker installations (Y). Could you clarify if there’s a specific reason for handling Docker installations differently? I just want to make sure I’m not overlooking anything important..

I’ve also shared the prompt logs after removing the isDockerInstallation flag in the palisadoes/talawa-api Slack channel for your reference.

Copy link

This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue.

@github-actions github-actions bot added the no-issue-activity No issue activity label Oct 18, 2024
@palisadoes
Copy link
Contributor Author

unassigning, inactivity

@github-actions github-actions bot removed the no-issue-activity No issue activity label Oct 29, 2024
Copy link

This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue.

@github-actions github-actions bot added the no-issue-activity No issue activity label Nov 10, 2024
@Suyash878
Copy link

I would like to work on this

@palisadoes
Copy link
Contributor Author

During the week of November 11, 2024 we will start a code freeze on the develop branches in Talawa, Talawa Admin and Talawa-API.

We have completed a project to convert the Talawa-API backend to use PostgreSQL. Work will then begin with us merging code in the develop branches to a new develop-postrgres branch in each repository.

Planning activities for this will be managed in our #talawa-projects slack channel. A GitHub project will be created to track specially labeled issues. We completed a similar exercise last year using a similar methodology.

Starting November 12, California time no new PRs will be accepted against the develop branch. They must be applied to the develop-postrgres branch.

There are some GSoC project features that will need to be merged into develop. These will be the only exceptions.

This activity and the post GSoC 2024 start date was announced in our #general Slack channel last month as a pinned post.

@github-actions github-actions bot removed the no-issue-activity No issue activity label Nov 12, 2024
@Suyash878
Copy link

Suyash878 commented Nov 13, 2024

Are we looking for something of this sort where we just prompt the user to execute the data import command, Or is it expected to run the data import command by itself and not ask the user to manually run it?

image

@PurnenduMIshra129th
Copy link

hi @palisadoes i want to work on all docker related issue on local installation . because i have already faced it and solved this so if u assign this to me then give some time to review it and direct merge it i think it will work.

@Cioppolo14
Copy link
Contributor

If the issue has already been assigned, please don't ask to be assigned. We want everyone to get a chance.

@PurnenduMIshra129th
Copy link

@Cioppolo14 no problem previously it is unassigned that's why i commented , i will find another one , thanks for information.

@Suyash878
Copy link

I am pretty much done with the changes will be raising a PR soon.

@palisadoes
Copy link
Contributor Author

Please apply the changes to the develop-postgres branch. We are migrating the backend to that DB.

@Suyash878
Copy link

I observed that there is no setup script for the develop-postgres branch and all of my changes have been made in the setup script (ie: setup.ts) for the develop branch, now if I make a PR to the postgres branch it would lead to large amount of conflicts which therefore would lead to the tests failing.
I would like to know how should I proceed with this

@palisadoes
Copy link
Contributor Author

Apply it to the develop branch and we can then create an issue for someone to use your work to create a setup script for develop-postgres

@PurnenduMIshra129th
Copy link

@palisadoes assign this issue to me . As previously faced this issue and choose to set the mongo locally and imported the data then connect with it dockor but this time i will import the data in the mongo image by handling the script.

@PurnenduMIshra129th
Copy link

hi @palisadoes assign this issue . Completed this one.Now in docker setup data is importing in mongo image will make one video to post here . review it and guide what needs to be changed.

@palisadoes
Copy link
Contributor Author

@AVtheking is working on this

@PurnenduMIshra129th
Copy link

2024-11-24-02-09-54-1_W7Sg9Ovl.mp4

hi @palisadoes . I uploaded one video of with for setup with docker with importing data with its mongo image. See it only i have done for windows . If u confirm then i will add for windows and mac os . I will make an pull request if u give further instructions to proceed . If @AVtheking completed then no problem u can ignore this .

Copy link

github-actions bot commented Dec 4, 2024

This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working no-issue-activity No issue activity
Projects
None yet
Development

No branches or pull requests

7 participants