MetaCell / MetaCell/cloud-harness

Webapp template description does not match with files generated

Open
#560 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug scope:code-generation
Dominant language
Python
Stars
19
Forks
5
Avg merge
3d 18h
Merged PRs (30d)
3

Description

When the `webapp` template is used, the `backend` directory is not generated.

Running:

```bash
harness-application webapp-example -t webapp
```

Generates the following files tree:

```
webapp-example
├── api
│   ├── config.json
│   └── openapi.yaml
├── backend
│   └── webapp_example
│   └── __main__.py
├── deploy
│   └── values.yaml
├── Dockerfile
├── frontend
│   ├── build.yaml
│   ├── package.json
│   ├── package-lock.json
│   ├── README.md
│   ├── src
│   │   ├── App.tsx
│   │   ├── assets
│   │   │   └── icon.png
│   │   ├── components
│   │   │   └── RestTest.tsx
│   │   ├── index.ejs
│   │   ├── index.tsx
│   │   ├── rest
│   │   │   ├── api.ts
│   │   │   ├── base.ts
│   │   │   ├── common.ts
│   │   │   ├── configuration.ts
│   │   │   ├── git_push.sh
│   │   │   └── index.ts
│   │   ├── styles
│   │   │   └── style.less
│   │   └── utils
│   │   └── history.js
│   ├── tsconfig.json
│   ├── webpack.config.dev.js
│   └── webpack.config.js
├── README.md
└── test
├── api
│   └── test_st.py
└── e2e
└── landing.spec.ts
```

We can see that the `backend` folder only contains a directory with a `__main__.py` file in it.

However `harness-application --help` mentions that:
```
- webapp (webapp including backend and frontend).
```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the webapp template and the output of `harness-application --help`, then reproduce `harness-application webapp-example -t webapp` to compare the description with the generated tree. Determine whether the template or its help text is authoritative, update the mismatched behavior or description, and verify the generated structure and help output agree.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, typescript
Domain
cli, full-stack, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.