Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • R RagConnect
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 17
    • Issues 17
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Terraform modules
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Admin message

System update scheduled for Friday, October 6th between 08:15 and 08:45 CEST. If unpleasant, please contact Ronny or Markus.

  • JastAdd
  • RagConnect
  • Issues
  • #37

Feature: Send endpoint for relations

  • enable send endpoint targeting one direction of a relation
  • requires #36 (closed) #35 (closed)

This would mimic the relast-API. is that a problem?

DSL:

send Model.MyA;
send Model.MyOtherA;
send Model.AllMyA;

Changed grammar:

-rel Model.MyA -> A;
+rel Model._ragconnect_delegate_MyA -> A
 
-rel Model.MyOtherA? -> A;
+rel Model._ragconnect_delegate_MyOtherA? -> A
 
-rel Model.AllMyA* -> A;
+rel Model._ragconnect_delegate_AllMyA* -> A

Generated Aspect:

public void Model.setMyA(A value) {
  set_ragconnect_delegate_MyA(value);
  // some send logic
}
public A Model.getMyA() {
  return get_ragconnect_delegate_MyA();
}
// ... lots of relast methods for changing and accessing other two relations ...

or using refine 🤔 without grammar changes

refine RelAstAPI public void Model.setMyA(A value) {
  refined();
  // some send logic
}
// ... other relast methods for changing other two relations ...
Assignee
Assign to
Time tracking