311-data icon indicating copy to clipboard operation
311-data copied to clipboard

DEV - Code and System Architecture FAQ

Open DrAcula27 opened this issue 1 year ago • 2 comments

Dependency

  • [x] Waiting for new questions to be added.

Overview

As developers who are trying to better understand the codebase, we need a place to post any questions about how the codebase works in FAQ format, as well as prepare these answers for future documentation (google docs, wiki).

Table of Contents

Action Items

Please complete the following action items for each question or answer.

Instructions For Submitting a Question

  • [ ] Copy/Paste the FAQ Question Template text into a new comment, populate the generic fields...
    • [ ] Question Title
    • [ ] Context / Notes (if applicable)
  • [ ] Modify this issue (#1986)
    • [ ] Move the ticket to Questions: https://github.com/orgs/hackforla/projects/63/views/1?filterQuery=Status%3AQuestions
    • [ ] Remove the https://github.com/hackforla/311-data/labels/Dependency label
    • [ ] Add the https://github.com/hackforla/311-data/labels/ready%20for%20dev%20lead label
  • [ ] Edit the Table of Contents of this ticket (#1986
    • [ ] Add a new bullet point, (see New Table of Contents Bullet Point Text (Copy/Paste))

Instructions For Answering a Question

  • [ ] Click the Quote Reply and provide your response
    • if you need more time to sufficiently answer the question...
      • [ ] Move this ticket (#1986) to In Progress: https://github.com/orgs/hackforla/projects/63/views/1?filterQuery=Status%3A%22In+progress%22
      • [ ] Provide an ETA and Availability
  • [ ] Once your answer has been submitted...
    • [ ] Assign this ticket to the volunteer who submitted the question
    • [ ] Modify the Question comment's Answer Status to "Discussion In Progress" (see Allowable Statuses copy/paste)
  • [ ] Edit the Table of Contents of this ticket (#1986)
    • [ ] Find the relevant Question comment, change the emoji-prefix from 🔴 to 🟡

Instructions For Finalizing an Answer

  • [ ] Edit your Question comment with the following...
    • [ ] Copy/Paste the relevant text from the Answer comment into the Selected Answer section
    • [ ] Provide a link to the comment with the answer
    • [ ] Update the "authored by" with the github-id of the volunteer who provided your answer
    • [ ] Update the "Answered: YYYY-MM-DD" date
    • [ ] Modify the Question comment's Answer Status to "Answered" (see Allowable Statuses copy/paste)
  • [ ] Edit the Table of Contents of this ticket (#1986)
    • [ ] Find the relevant Question comment, change the emoji-prefix from 🟡 to 🟢
  • [ ] If there are no further unanswered questions, modify this ticket (#1986)...
    • [ ] Clear the Assignee
    • [ ] Move to the Icebox (on Hold): https://github.com/orgs/hackforla/projects/63/views/1?filterQuery=status%3A%22Icebox+%28on+hold%29%22, (see How to Change Project Board Status to Questions, but reverse it!)
    • [ ] Remove the https://github.com/hackforla/311-data/labels/ready%20for%20dev%20lead and add the https://github.com/hackforla/311-data/labels/Dependency label

Resources/Instructions

Useful Screenshots

How to Quote Reply

Click on the ellipse, ..., for the question you'd like to answer or discuss and select "Quote Reply".

Image

How to Change Project Board Status to Questions

In the Sidebar (Right), click on the Status dropdown, and find the Questions option menu. Don't accidentally click on the right-most arrow, this will reveal nothing.

Image

New Table of Contents Bullet Point Text (Copy/Paste)

- [🔴 Q: <title-of-question>](url-of-issue-comment)

FAQ Question Template Text (Copy/Paste)


## Q:  [REPLACE-WITH-QUESTION]

### Context / Notes

Add any of your notes here, if applicable.

Consider using a dropdown if you have a lot of notes, or you want to include screenshots.

<details><summary>Dropdown Example</summary>
<p>

Like so...

</p>
</details> 

### Selected Answer

n/a

---

Answered: YYYY-MM-DD
- [link-to-answer-issue-comment]
- authored by [@person-who-authored-answer]

#### Answer Status

🔴 Seeking Answer

Allowable Statuses (Copy/Paste)

🔴 Seeking Answer
🟡 Discussion In-Progress
🟢 Answered

Other Live-Forever Issues

  • https://github.com/hackforla/311-data/issues/1878
  • https://github.com/hackforla/311-data/issues/1726

DrAcula27 avatar Jun 12 '25 03:06 DrAcula27

Q: How Is Service Request Data Cleared in the Map

Context / Notes

There exist functions that appear to clear data and reset the map, but don't actually remove data from the application:

  • in redux/reducers/data.js
    • there is a clearPinInfo function that is used to clear info when a user's mouse leaves a feature's info popup
  • in components/Map/Map.jsx
    • there is a reset function that is used to remove data from the GUI and reset map zoom, but nothing here indicates that the data itself is being removed

Selected Answer

n/a


Asked: 2025-06-12 Answered: YYYY-MM-DD

Status

🔴 Seeking Answer

rayneng avatar Jun 12 '25 23:06 rayneng

If this is still in its infancy, we might consider using GitHub's built-in discussion tab for the repo. It keeps everything organized, has labels and statuses so devs don't have to copy paste, and is already used by other teams so we have templates to follow it needed.

the react team has one to check out

React: https://github.com/reactwg/react-18/discussions/categories/q-a

Next JS https://github.com/vercel/next.js/discussions

NASA https://github.com/nasa/cFS/discussions

efrenmarin45 avatar Jun 19 '25 02:06 efrenmarin45