slides/modules/collaboration.html

152 lines
5.4 KiB
HTML
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!doctype html>
<html lang="en">
<head>
<title>Collaboration</title>
<meta name="description" content="Collaboration with Datasets on Forgejo">
<meta name="author" content="The DataLad Team">
<meta charset="utf-8">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
<!-- Original reveal JS stylesheets-->
<link rel="stylesheet" href="../reveal.js/dist/reset.css">
<link rel="stylesheet" href="../reveal.js/dist/reveal.css">
<link rel="stylesheet" href="../reveal.js/dist/theme/beige.css">
<!-- custom styles, e.g., imgcredit -->
<link rel="stylesheet" href="../custom/css/main-no-copy.css" id="theme">
<script src="../custom/js/printpdf.js"></script>
</head>
<body>
<div class="reveal">
<div class="slides">
<section>
<section data-markdown data-transition="none"><script type="text/template">
# Collaboration
### Share your datasets
</script></section>
<section data-markdown data-transition="none"><script type="text/template">
## "Share data like sourcecode"
Datasets can be cloned, pushed, and updated from and to **local** and **remote** paths, **remote hosting services**, external **special remotes**
![](../img/concepts/decentral_RDM_overview_flow.svg)
</script></section>
<section data-markdown data-transition="none"><script type="text/template">
## Objective: Publish the dataset to Forgejo
**Preparation: Obtain a token**
Go to <a href="https://hub.edu.datalad.org/user/settings" target="_blank">hub.edu.datalad.org/user/settings</a>
<div class="r-stack">
<img src="../img/concepts/forgejo-token2.png">
<img class="fragment" src="../img/concepts/forgejo-token3.png">
</div>
</script></section>
<section data-markdown data-transition="none"><script type="text/template">
**Objective: Publish the dataset to Forgejo**
- Create a new repository ``penguin-beaks`` in the webinterface: [https://hub.edu.datalad.org/repo/create](https://hub.edu.datalad.org/repo/create)
- Register a sibling / remote URL in the <code>penguin-beaks</code> dataset, using the URL:
[https://hub.edu.datalad.org/USER-NAME/penguin-beaks.git](https://hub.edu.datalad.org/USER-NAME/penguin-beaks.git) (replace USER-NAME with your forgejo account name):
```
git remote add origin https://hub.edu.datalad.org/USER-NAME/penguin-beaks.git
```
- Push dataset and file contents. What gets reported in your terminal?
```
datalad push --to origin
```
<small>(Supply your account name and the token as password when prompted in the terminal!)</small>
- In the forgejo webinterface, explore your newly created repository.
</script></section>
<section data-markdown data-transition="none"><script type="text/template">
**Objective: Clone your neighbours dataset**
- Clone your right neighbours dataset (replace USER-NAME with <em>their</em> forgejo account name).
Make sure you're not inside your own dataset.
```
datalad clone https://hub.edu.datalad.org/USER-NAME/penguin-beaks.git other-penguin-beaks
```
<!-- .element: style="font-size:75%" -->
- Find the commit hash of their run commit. Rerun their analyses
```
datalad rerun HASH
```
<!-- .element: style="font-size:75%" -->
</script></section>
<section data-markdown data-transition="none"><script type="text/template">
**Objective: Stay up to date**
- While "push" publishes new developments, "datalad update" fetches or pulls them.
- "datalad update" <em>fetches</em>, "datalad update --how merge" <em>pulls</em> updates.
- "-s" declares the sibling to update from.
- "-r" performs a recursive update.
- Try pushing and pulling an update yourself.
```
datalad update --how merge -s origin
```
<!-- .element: style="font-size:75%" -->
</script></section>
</section>
</div> <!-- /.slides -->
</div> <!-- /.reveal -->
<script src="../reveal.js/dist/reveal.js"></script>
<script src="../reveal.js/plugin/notes/notes.js"></script>
<script src="../reveal.js/plugin/markdown/markdown.js"></script>
<script src="../reveal.js/plugin/highlight/highlight.js"></script>
<script src="../custom/js/copy-code.js"></script>
<script>
// Full list of configuration options available at:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
// The "normal" size of the presentation, aspect ratio will be preserved
// when the presentation is scaled to fit different resolutions. Can be
// specified using percentage units.
width: 1280,
height: 960,
// Factor of the display size that should remain empty around the content
margin: 0.1,
// Bounds for smallest/largest possible scale to apply to content
minScale: 0.2,
maxScale: 1.0,
controls: true,
progress: true,
history: true,
center: true,
transition: 'slide', // none/fade/slide/convex/concave/zoom
// Optional reveal.js plugins
plugins: [ RevealMarkdown, RevealHighlight, RevealNotes ]
});
</script>
<!-- A footer with a "1" and "home" button to get back to the first slide and the index page -->
<div id="hidden" style="display:none;">
<div id="header">
<div id="footer-left"><a href="#0">1️⃣</a></div><div id="footer-right"><a href="../workshops/2025-DKZ.2R.html">🏠</a></div>
<!-- <div id="footer-right"><a href="../index.html">🏠</a></div>-->
</div>
</div>
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
<script src="../custom/js/headerandfooter.js"></script>
</body>
</html>