Jasonette / Jasonette/JASONETTE-iOS

app should never return empty fields with {{template}}

Open
#80 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
5.2k
Forks
347
PR merge metrics
No merged PRs in 30d

Description

I have to pepper my code with lots of bits like and similar to this to check for empty user fields. makes things more complex that they have to be.

jasonette should return empty fields and not let code percolate to the back-end app.

```ruby
check = [@event.title, @event.password, @event.host].map{|s| s =~ /{{/ }.compact
if check.size > 0
# some of the elements have "{{$get.xxx_yyy}}" in them, means they are empty!
render json: {}, status: :unprocessable_entity
return
end
```

Contributor guide

Open the contributing guide

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

No file or test is named. Start by reproducing a template containing empty user fields and trace where those fields are handled before reaching the backend; done means empty fields are handled by the app without requiring callers to add checks like the example.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, ruby
Domain
mobile-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.