-
Notifications
You must be signed in to change notification settings - Fork 33
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
[vsc-extension] [C4GT] Stencil VSCode extension #7
Comments
Hello @RyanWalker277, I'm keen on taking up this issue. I would like more information, particularly regarding step 2, which involves implementing the data verification feature. This feature aims to enable users to validate data from CSV/JSON files against the Prisma client-generated model. Can you provide more guidance to help me proceed with this task? |
Hey @Apurv428, so basically the VS-Code extension should be able to seed the data in the db. The user will provide a CSV including the data to be seeded. It should then verify if the CSV is according to our prisma model. If the validation succeeds, then it should seed the csv data into the database in the appropriate table. |
Thanks for the explanation. So, according to my understanding Please correct me if I am wrong. Do you have any recommendations on how to begin with this? Also, could you share the database format to get acquainted with it? |
Yes the understanding is correct. You can refer to this to begin: https://www.freecodecamp.org/news/making-vscode-extension/ The database format is provided along with the code in the |
Thank you for providing the reference. If I have any questions, I'll reach out to you. |
Hi @RyanWalker277 |
Hey @Apurv428, in the first iteration it should be a basic extension which provides the functionality to seed db from csv data. There would be more features and enhancements after this feature is initialised. Let me know when you are ready to create a pull request, I'll create a separate repository for the extension. You'll have to create a PR on that. |
Okay, I have created a basic extension and am working on the upload functionality. |
Hi @RyanWalker277 , how can I get the format of database? Is it same as the Role model? |
Hey @Apurv428 , |
So, similar to Role model, there may be other models mentioned in that file? Can there be more than 1? |
Yes |
I've implemented the CSV validation part. Could you please create a repository for it so that I can make a pull request?" And for the second part about database seeding: Where should we retrieve the database details from? Are they obtained in the same way from Prisma? Could you share the env variable values related to the database? Additionally, will the table names correspond to the model names? |
Hey @Apurv428, |
Sure! |
Hi, Where should we retrieve the database details from? Are they obtained in the same way from Prisma? Could you share the env variable values related to the database? Additionally, will the table names correspond to the model names? |
Hey @Apurv428, |
Okay, thank you! |
@techsavvyash I understand the problem, and I believe I have the necessary skills. Could I have the opportunity to work on this? |
is it still available to work on ? Can I start work on it? |
@Abhi-0001 the first version of the vs code extension was very generously contributed by @Apurv428. The issue is still open to work on by adding more functionality enhancing the developer experience. |
Thanks @techsavvyash, so Can you give me instructions about setting the code up in my machine (as this is my first time in vscode extension development, though I know typescript) and the requirements I would have to full fill for next version. |
Refer #78 |
@techsavvyash by adding some more features, will I be getting the points? |
yes @thekavikumar |
@techsavvyash |
@VedantKhairnar this is a long running ticket. |
Create VSCode Extension for Stencil - Data Verification Feature
Description
The goal is to develop the first version of a VSCode extension for Stencil, aiming to enhance the Developer Experience (DX). The primary feature for this initial release is to verify data intended for seeding in the database against the model generated by the Prisma client. This verification will be conducted using CSV or JSON files.
Goals
VSCode Extension Setup: Establish the basic structure and setup for the VSCode extension tailored for Stencil.
Data Verification Feature: Implement the feature that allows users to verify data from CSV/JSON files against the Prisma client-generated model.
Acceptance Criteria
Extension Setup: Successfully set up the VSCode extension project with Stencil integration.
Data Verification Functionality: Implement functionality within the extension that verifies data present in CSV/JSON files against the Prisma client-generated model.
User Interface (UI): Develop a simple and user-friendly UI within VSCode to facilitate the data verification process.
Testing: Ensure the data verification feature works as intended and is capable of identifying inconsistencies between the provided data and the Prisma model.
Documentation: Provide clear documentation on how to use the VSCode extension, specifically focusing on the steps for data verification and any relevant considerations. Include your docs as a ReadME.md in your PR. The docs will be pushed to official stencil documentation after successful merging of your PR.
Checklist (To be filled by the developer)
Set up the basic structure and configuration for the Stencil VSCode extension.
Implement the data verification feature, allowing users to check data from CSV/JSON files against the Prisma client-generated model.
Design and implement a simple and user-friendly UI within VSCode for the data verification process.
Perform thorough testing to ensure the accuracy and effectiveness of the data verification feature.
Document the usage of the VSCode extension, emphasizing the steps for data verification and any important information for users.
Product Name
Stencil
Organisation Name
SamagraX
Tech Skills Needed
TypeScript
Mentors
@RyanWalker277
Complexity
Hard
Domain
Category
Miscellaneous
Sub Category
VsCode Extensions
The text was updated successfully, but these errors were encountered: