dodona icon indicating copy to clipboard operation
dodona copied to clipboard

Allow linking to exercises in the same repo

Open beardhatcode opened this issue 6 years ago • 6 comments
trafficstars

It would be nice to be able to link to an other exercise in a repo.

I was thinking of something like this:

Write a `goal` predicate for an  
[iterative deepning](exercise:/SearchAlgorithms/ItterDepth) 
algorithm that ...

This link should refer to the exercise that is at /SearchAlgorithms/ItterDepth as seen from the root of the current repository:

  • in the scope current course if is in one of the series
  • just the exercise page if it is not in the course

I don't know what should happen with

  • [iterative deepning](exercise:/SearchAlgorithms/ItterDepth/meta)
  • [iterative deepning](exercise:SearchAlgorithms/ItterDepth)
  • [iterative deepning](exercise:../ItterDepth)
  • [iterative deepning](exercise:/NonExisting/Path)

Original issue by @beardhatcode on Tue Apr 30 2019 at 13:42.

beardhatcode avatar Aug 01 '19 10:08 beardhatcode

How about referring by exercise token? This is the only cross-instance identifier we have.

Though [iterative deepning](exercise:1poiu23w0f98poq2iu1209384) is a bit ugly.

Original comment by @ninewise on Tue Apr 30 2019 at 14:39.

ninewise avatar Aug 01 '19 12:08 ninewise

Looking up exercise with token 1poiu23w0f98poq2iu1209384 is equally costly to looing up exercise with path /SearchAlgorithms/ItterDepth. Both string comparisons of relatively short size in the database. (I think)

Original comment by @beardhatcode on Tue Apr 30 2019 at 15:18.

beardhatcode avatar Aug 01 '19 12:08 beardhatcode

Paths are more natural, and we don't want people to ascribe any meaning to the tokens, so if/when this is implemented I'm definitely a proponent of the using the path as the identifier (both are unique (within the repo)). This does prevent inter-repo links, but those seem less useful to me anyway.

Original comment by @charvp on Tue Apr 30 2019 at 15:56.

chvp avatar Aug 01 '19 12:08 chvp

Inter-repo links will always be possible using a plain URL (as is done now). This suggestion is only an additional way to included references to other exercises.

Original comment by @pdawyndt on Tue Apr 30 2019 at 16:25.

pdawyndt avatar Aug 01 '19 12:08 pdawyndt

@bmesuere Any update on this? I could really use this to be honest...

JoFAM avatar Nov 16 '23 14:11 JoFAM

@JoFAM We have no way to implement this without a significant refactor of how Dodona works, so don't expect this any time soon.

bmesuere avatar Nov 16 '23 14:11 bmesuere