concerto icon indicating copy to clipboard operation
concerto copied to clipboard

Type definitions for DCS

Open sanketshevkar opened this issue 1 year ago • 22 comments

Bug Report 🐛

Type definitions for a DCS model are missing. Add generated typescript types of DCS Concerto Model to concerto-types module.

Expected Behavior

Type of DCS object should be centrally defined in concerto-types.

Possible Solution

We'll require a code generation script similar to this that will convert the DCS concerto model to its corresponding typescript definitions.

sanketshevkar avatar Nov 18 '24 03:11 sanketshevkar

Hi @sanketshevkar,

I hope you're doing well! I'm interested in contributing, but I'm having a bit of trouble understanding the issue. Could you kindly provide a bit more detail or clarify it for me?

Thanks so much in advance!

Ayush1404 avatar Nov 24 '24 01:11 Ayush1404

Hi @Ayush1404 I've updated the issue description with some reference link.

sanketshevkar avatar Nov 26 '24 04:11 sanketshevkar

@sanketshevkar thank you , i will look into it

Ayush1404 avatar Nov 28 '24 15:11 Ayush1404

@Ayush1404 just a heads up, I might pick this up next week on Wednesday, if not already started. Please let me know if you'd already started work on this.

sanketshevkar avatar Nov 29 '24 13:11 sanketshevkar

hey @sanketshevkar , sorry for the late reply , was a little busy due to college exams . We can do two things we can make changes in existing code-gen script to include DCS_MODEL from the decoratormanager.js file like this Screenshot 2024-12-01 at 5 18 05 PM or we can generate a new script , something like this Screenshot 2024-12-01 at 5 21 15 PM what do you think , which one do you think should we go for ?

Ayush1404 avatar Dec 01 '24 12:12 Ayush1404

Thanks @Ayush1404. I'm sorry I don't want to bother you during your exams, hope you are done with them.

The first approach seems fit to to me.

sanketshevkar avatar Dec 02 '24 04:12 sanketshevkar

@sanketshevkar No problem , the exams are over now . Do i have to make any changes in it , before making a PR ?

Ayush1404 avatar Dec 02 '24 04:12 Ayush1404

Idts, maybe just raise the PR following our contributors guideline and do not forget the DCO-Signoff :)

sanketshevkar avatar Dec 02 '24 05:12 sanketshevkar

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 10 days.

github-actions[bot] avatar Feb 01 '25 02:02 github-actions[bot]

@Ayush1404 are you still working on this.

sanketshevkar avatar Feb 07 '25 07:02 sanketshevkar

Hi @sanketshevkar, I noticed this issue is in the backlog I'd be happy to work on this, would you assign this to me ?

fuyalasmit avatar Mar 15 '25 13:03 fuyalasmit

I saw the codebase meanwhile, and I have thought of a roadmap to solve the issue:

  1. Load the DCS_MODEL from decoratormanager.js to modelManager
  2. Then, process the model using TypescriptVisitor
  3. Writing into correct output directory

fuyalasmit avatar Mar 15 '25 15:03 fuyalasmit

Hi @fuyalasmit , are you still working on this issue?

TC5022 avatar Mar 22 '25 13:03 TC5022

Hi @fuyalasmit , are you still working on this issue?

Hi, I suggested a approach in brief before, but I was involved in other issues in the meantime. However, I'm planning to look at this one again soon. If you're interested, we could collaborate on solving it together. Let me know if that works for you!

fuyalasmit avatar Mar 22 '25 16:03 fuyalasmit

Hi @fuyalasmit , are you still working on this issue?

Hi, I suggested a approach in brief before, but I was involved in other issues in the meantime. However, I'm planning to look at this one again soon. If you're interested, we could collaborate on solving it together. Let me know if that works for you!

Sure, let's work it together. Have you made any changes in the code already?

TC5022 avatar Mar 23 '25 10:03 TC5022

Haven't made any changes regarding this issue, I was waiting for the maintainer to respond since he stated

a new PR is to be opened in concerto-metamodel repo here

By the way, have you thought of any approach to tackling this?

fuyalasmit avatar Mar 24 '25 05:03 fuyalasmit

Yeah I went through the codebase, and I think the approach stated by you works well, we will have to update the existing codegen script and include the DCS model in it. We will just have to be careful about exporting the DCS model correctly.

@sanketshevkar could you please assign us this issue? Should I open a PR in the concerto-metamodel repo with starter changes ? Then we can see how it goes from there, maybe make changes together, if needed.

Haven't made any changes regarding this issue, I was waiting for the maintainer to respond since he stated

a new PR is to be opened in concerto-metamodel repo here

By the way, have you thought of any approach to tackling this?

TC5022 avatar Mar 24 '25 12:03 TC5022

Okay, if you are starting, make sure you clone this and work here, so that it will be easier for me too, since I already have it set up locally. I couldn’t see your fork, so collaborating this way will help. Also, make sure you use co-authored commits.

fuyalasmit avatar Mar 24 '25 14:03 fuyalasmit

Okay, if you are starting, make sure you clone this and work here, so that it will be easier for me too, since I already have it set up locally. I couldn’t see your fork, so collaborating this way will help. Also, make sure you use co-authored commits.

We will first have to define the DCS model in this repository (linked my fork) instead of concerto and export it from there. After that we will have to import it here so that the overall exports work.

@sanketshevkar, I wanted to clarify where should I define the DCS model in the concerto-metamodel repo. Will defining it as a variable in the utils file work?

TC5022 avatar Mar 25 '25 16:03 TC5022

Apologies I was caught up in some work. I'm assuming @Ayush1404 is no longer working on this issue. But I'll still wait for his response.

sanketshevkar avatar Mar 29 '25 03:03 sanketshevkar

@TC5022 I've requested changes on your PR. Once those are in. Can @fuyalasmit or you just clone @Ayush1404 's changes and update import there?

With this we can have your both as well as @Ayush1404 's changes in the codebase. I don't want anyone's work get wasted here. Please avoid doing a FORCE PUSH to the PR we'll loose the commits.

sanketshevkar avatar Mar 29 '25 04:03 sanketshevkar

yeah sure, @TC5022 will do the needed work in concerto-metamodel, when it gets done there, I'll fix the changes for type definition for DCS is that okay ?

fuyalasmit avatar Mar 29 '25 06:03 fuyalasmit

hey, what's the progress so far ?

fuyalasmit avatar Apr 06 '25 15:04 fuyalasmit

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 10 days.

github-actions[bot] avatar Jun 06 '25 02:06 github-actions[bot]