-
Notifications
You must be signed in to change notification settings - Fork 12
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
Docs fixes and improvements #102
Conversation
For that we need to (re-)introduce a
I don't think that's currently possible (except you create a dedicated commit w/ |
Thanks @bpoldrack - I updated my OP (and added new questions). Also stumbled over an issue while trying out using OSF credentials instead of an OSF token:
I defined
the password and username are both correct and I can log in with them. Yet I still get an error from datalad-osf as pasted above. Any clues why? |
For now:
Eventually |
To be honest - I'm not sure, whether this generates new versions from the point of view of OSF, But I'd suspect it does. We need to make sure that's the case indeed. |
Not yet. PR #100 will allow for that. |
There was some trouble on some machines in that regard (including mine). Current master should work better. You could install/update via |
Thanks a lot for all of these answers @bpoldrack. I'll finish up this PR later and mark it "ready for review". |
I am on the dev version (most recent commit on |
hey @all-contributors please add @sappelhoff for doc userTesting |
I've put up a pull request to add @sappelhoff! 🎉 |
I finished my changes for now, ready to get a review and improve the changes, or just to merge 🙂 I also took the liberty to add myself to the contributors, following the contributing guide |
'OSF_TOKEN', or both 'OSF_USERNAME' and 'OSF_PASSWORD'. If neither of these | ||
is defined, the tool will fall back to the datalad credential manager and | ||
inquire for credentials interactively. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FTR: When used with DataLad, it supports queries of DataLad's credential management and makes the definition of environment variables unnecessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After #95
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does FTR mean? Should I replace my sentence with yours?
Note that the ``-s NAME_OF_REMOTE>`` flag is used to specify how ``git`` internally refers to your OSF project with the name `OSF_PROJECT_NAME`. | ||
It would be completely fine to use `OSF_PROJECT_NAME` also as a value for the ``-s`` flag. | ||
|
||
You can later on list your remotes from the command line using the ``git remote -v`` command. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ATM this names refers to the special remote, not a Git remote IIRC.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still listed by git remote -v
. Just w/o any details.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a command to list special remotes that I should refer to instead?
Should I adjust the text to make it more clear that this is not a normal remote, but a special remote?
|
||
.. code-block:: bash | ||
|
||
export OSF_TOKEN=YOUR_TOKEN_FROM_OSF.IO | ||
|
||
We are now going to use datalad to create a sibling dataset on OSF with name `osf` - this will create a new project called `OSF_PROJECT_NAME` on the OSF account associated with the OSF token in `$OSF_TOKEN`. | ||
We are now going to use datalad to create a sibling dataset on OSF with name `OSF_PROJECT_NAME`. | ||
This will create a new project called `OSF_PROJECT_NAME` on the OSF account associated with the OSF token in `$OSF_TOKEN`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the rational to switch from osf
to OSF_PROJECT_NAME
in the example. Do you envision the need to have multiple different OSF projects for the same dataset as a common case?
Having something simple and uniform, such as osf
makes a lot of sense. Especially in the case of a hierarchy of nested datasets, where one would want to be able to do a datalad push --to osf --recursive
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you envision the need to have multiple different OSF projects for the same dataset as a common case?
no, I don't think so,
But I would prefer to let users know (also within the example) that it's up to their discretion which name they want to use for their remote and the OSF project. --> after all, it doesn't matter whether it's called osf
or something else.
But reading this again, it seems like I mixed up some things and it rather should be something like:
We are now going to use DataLad to create a sibling dataset on OSF as a "special remote". Within git-annex, we will refer to the special remote with the name
$NAME_OF_REMOTE
, while the project that will be created on the OSF account associated with the$OSF_TOKEN
will be called$OSF_PROJECT_NAME
.
@sappelhoff thx for the PR. I made a bunch of comments. We also still seem to have an issue with testing of PRs from other forks. |
FTR: I am implementing git remote support in |
#105 brings in a credential helper |
Super cool that development does not stop with the Brainhack 👍 re: my PR, I see two options
given that I already invested some work, I am of course in favor of 1. - but I am interested to hear your opinions! |
@sappelhoff Will merge and go for (1)... and hoping that you will have another round of paying with it, once #100 is completed (hopefully later today). |
sure, looking forward to it! Just ping me :-) |
related to #97.
I am collecting several smaller fixes while going through the commands @bpoldrack recommended.
Questions that come up regarding
--mode export
These questions may be answered and then used to improve the tutorial.
what would I have to do to have my data exported in a folder with the name of the dataset (as in
datalad create DATASET_NAME
) ... as opposed to having all files being loaded directly into the OSF? --> currently not possible, but may be a feature in the future (see Docs fixes and improvements #102 (comment))the
.datalad
directory seems to be exported as well, ... how can I suppress this? (I may want to suppress writing the.datalad
directory if using BIDS, and not wanting to add a.bidsignore
with a single line.datalad
) --> probably just have to live with it ... CAN be solved (but only in hacky ways) Docs fixes and improvements #102 (comment)Given the hypothetical case that I already HAVE an OSF repository ... how do I add an OSF remote to a local datalad dataset to then just do
git annex export HEAD --to NAME_OF_REMOTE
... without the OSF repo creation step? --> it's possible, but not yet convenient (future feature) Docs fixes and improvements #102 (comment)when I update my data locally and then repeat
git annex export HEAD --to NAME_OF_REMOTE
... will it overwrite my data, creating new OSF versions? --> unknown as of now: Docs fixes and improvements #102 (comment)Questions that come up regarding
--mode annex
--mode annex
, how can I clone or install my data from that OSF project (say, on a different machine, or after deleting locally) --> will be enabled with Rough draft of a Git remote helper to store Git repositories in OSF projects #100 (probably, see: Docs fixes and improvements #102 (comment))